ward1992
3 years agoHonored Guest
User Id used for IAP S2S REST Requests
Hi Support,
For IAP S2S requests in this doc: https://developer.oculus.com/documentation/native/ps-iap-s2s/
1. Verify Item OwnerShip: there is no user id in the request, is this intended? if yes, how will oculus identify the user?
curl -d "access_token=OC|$APP_ID|$APP_SECRET" -d "sku=$SKU" https://graph.oculus.com/$APP_ID/verify_entitlement
2. Consume an IAP Item: the same quest as no.1
curl -d "access_token=OC|$APP_ID|$APP_SECRET" -d "sku=$SKU" https://graph.oculus.com/$APP_ID/consume_entitlement
3. Retrieve Items Owned: what is the user id? app scoped id or org scoped id?
curl -G -d "access_token=OC|$APP_ID|$APP_SECRET" -d "user_id=$USER_ID" -d "fields=id,grant_time,expiration_time,item{sku}" https://graph.oculus.com/$APP_ID/viewer_purchases
Thanks