question

programacion avatar image
programacion asked

Can I add an item to an inventory with Client API?

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

·
Joshua Strunk avatar image
Joshua Strunk answered

Sure with

Client.PurchaseItem

Client.UnlockContainerInstance

Client.UnlockContainerItem

Client.AcceptTrade

and all of the platform-specific validate receipt endpoints.

If you mean arbitrarily grant an item to a user with a ClientAPI call then no that would be a huge security issue. However, you can create a simple CloudScript handler to grant an arbitrary item to a User. This comes with the added benefit of allowing you to add checks to ensure the user did indeed earn the item.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

programacion avatar image programacion commented ·

Sorry for the lack of a better specific question.

Yes, I meant manually add an item to a user after certain in-game event directly from the client; without the player actually purchasing it. I guess I'll have to go with the cloud script solution then.

Thanks

0 Likes 0 ·

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.