When a user buys items from our external purchase frame and once the purchase is complete, I think we should get the user_id, game_auth_token, for using the user_items.json method and use_item.json method to query and consume items, how could we get these datas (user_id, game_auth_token) when the user complete the buying process on your site https://www.kongregate.com/api/purchase_items?
Check out the callback url functionality. (Bottom of this page) Hopefully that is what you want.
Inventory Invalidation: invalidate_user_inventory
This callback (invalidate_user_inventory) is fired when a user’s inventory is changed. This can happen when they complete a purchase. When you receive this event, you should request an updated list of the player’s item instances so you can update the information on your end.
- user_id: The user_id of the player who had their inventory changed.
- username: The username of the player who had their inventory changed.
- game_auth_token: The game_auth_token of the player who had their inventory changed.