Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

IAP S2S REST Requests Help

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?

Comments

  • handsomeguoguohandsomeguoguo Posts: 15
    NerveGear
    @imperativity
    @delphinius81

    Hello guys, do you ever have some experience about this issue?
  • delphinius81delphinius81 Posts: 297
    Nexus 6
    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.
Sign In or Register to comment.