I'd like to write a character object via SetObjects, but apparently it's trying to write entity type "title_player_account" rather than "character". I'm writing this code in a Windows Forms app and I'm using JSON.NET as my serializer.
Here are the steps as I understand them:
- Login via PlayFabClientAPI.LoginWithCustomIDAsync
- Get a "character" token via PlayFabEntityAPI.GetEntityTokenAsync
- Save the object via PlayFabEntityAPI.SetObjectsAsync
However the token I receive from GetEntityTokenAsync in step 2 is apparently for objects of type "title_player_account". How should I request a character token instead?
Here's my code to get the character token:
And here's my code to write the object via SetObjectsAsync: