question

benoit avatar image
benoit asked

how to AddInventoryItems to play server side

I need to give items to my players at certain times, I got a token on the server side thanks to the secret key but then I don't understand how I have to format the "inventory/AddInventoryItems" request to specify the user I want to send the item to. Should I regret using economy v2 as you advise all over your doc?

apisIn-Game EconomyPlayer Inventory
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

To specify the user you want to send the item to, you could use the Entity parameter of the Add Inventory Items API. And the EntityToken you get with Secret Key, you could set the AuthenticationContext parameter with EntityToken in the API request body.

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.