cancel
Showing results for 
Search instead for 
Did you mean: 

IAP S2S REST Requests Help

handsomeguoguo
Honored Guest
Hi,
Now I am handling my application with IAP(Inner Application Purchase) .
I've already succeeded by using the four method to reach my goal.  Platform.IAP.GetViewerPurchases(), Platform.IAP.GetProductsBySKU(),Platform.IAP.LaunchCheckoutFlow() , Platform.IAP.ConsumePurchase() .

Now I want to use the S2S REST Requests for IAP for security. The totorial information on  the website is so confused for me.
https://developer.oculus.com/documentation/platform/latest/concepts/dg-iap/

For example:
$ curl -d "access_token=$USER_ACCESSTOKEN" -d "user_id=$USERID"
        https://graph.oculus.com/$APPID/verify_entitlement

I have 3 questions for this:
1)How can I put this kind of code to my C# files,or in my Unity project?
2)if there is a way, to write this in C# style  to reach the same goal?
3)Does anyone know some examples about how to use S2S request in oculus VR application?
2 REPLIES 2

handsomeguoguo
Honored Guest
@imperativity
@delphinius81

Hello guys, do you ever have some experience about this issue?

delphinius81
Rising Star
Nope, I just used the provided API functions, didn't bother making web requests. However, if you want to do that, you'll need to google something about curl in c#. You're on your own figuring that out, though someone might be able to better direct you.