question

anatoliec avatar image
anatoliec asked

GetPlayerSegments

When i call GetPlayerSegments, i got error:
StackTrace = "TypeError: server.GetPlayerSegments is not a function

data.playerSegments = server.GetPlayerSegments({PlayFabId: currentPlayerId});
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

anatoliec avatar image anatoliec commented ·

i call this code in cloudscript, but i tink it's not work because X-SecretKey not setted, how to get PlayerSegments from cloud script ?

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

Apologies for the confusion on this - when we add a new method to the Server API set, there is currently a brief interval before the call is available to Cloud Script (usually only a day). We're working on an update which will eliminate that delay.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.