question

Lheo Mendoza avatar image
Lheo Mendoza asked

GetUserInventory returning undefined

This code returns undefined.

PlayFab.ClientApi.GetUserInventory( this[_sessionId], (result,error)=>{ if(error){ console.log('Something went wrong.',PlayFab.GenerateErrorReport(error)); } else if(result !== null){ return result.data.VirtualCurrency.RW } } )
apis
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

·
Sarah Zhang avatar image
Sarah Zhang answered

Have you tested to call this API in the external REST API testing tools, like Postman? It's convenient to use such tools to check the error details.

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.