question

hulosowanie7 avatar image
hulosowanie7 asked

LoginWithCustomID through CloudScript

Hey.

I was trying to Login using CloudScript but I am getting an error.

Can someone help me?

CloudScript
10 |1200

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

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

The request header of PlayFabClientAPI.ExecuteCloudScript requires the X-Authorization key, which is the Session Ticket that can be obtained only after the player logged in. So, you have to log in first. Additionally, since LoginWithCustomID is a client API and CloudScript only supports server APIs and entity APIs, it is not possible to call client APIs in CloudScript.

2 comments
10 |1200

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

hulosowanie7 avatar image hulosowanie7 commented ·

So I have to LoginWithCustomID using ClientAPI through my game right?

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha hulosowanie7 commented ·

Yes, that is right.

0 Likes 0 ·

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.