I'm trying to get virtual currency, but here is the problem. Using cloudscript I did:
var result2 = PostAsync("", "https://.playfabapi.com/Server/GetUserInventory", json2).Result;
as return, the json2 is:
GetUserInventoryRequest inventoryRequest = new GetUserInventoryRequest();
inventoryRequest.PlayFabId = playFabId;
string json2 = JsonConvert.SerializeObject(inventoryRequest);
I have a very long text as result, and I don't know now how to filter just the info I want. For instance, I want to make a public string vcAmount;
and fill vsAmount
with the current player VirtualCurrency amount, someone can help me with the code? I can't find the answer anywhere.