According to the first line of Unity console, the problem seems to be trying to call client APIs without login in.
There are 3 main genres of APIs in PlayFab which are Client API, Server API, Entity API. What you have mentioned, the update player data related APIs, are Client APIs and they are designed for game players to access PlayFab service. Client APIs requires a valid session ticket that is returned from login API calls. That’s why you need to firstly login in. In Unity SDK, after the successful login, the encapsulated functions will automatically add session tickets and login information in to corresponding parameters so that you may call client APIs. Due to its asynchronous nature, you may implements functions in OnSuccess callback area to avoid error reporting.
We highly recommend you to make use of RESTful testing tools like Postman to test and learn PlayFab, you may find documentation here:
https://docs.microsoft.com/en-us/gaming/playfab/sdks/postman/. You will see the required field in the Http headers and Client APIs requires session ticket while Server API needs secret key. Entity related APIs requires entity token.
Meanwhile, the secret key is an identity of game developers or we can say the game manager, to manage the game. The actions like updating player internal data, changing statistics, directly granting items can be done with the help of secret key, which also means the secret key should not be exposed to any players. All the Server APIs and a part of Entity APIs require secret keys to perform. Cloud Script is a good application scenario to make use of server APIs.
3 People are following this question.