Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Make REST API call in hololens

edited April 2017 in Questions And Answers

Hi everyone, I'm new in developping app for hololens, I didn't find a easy way to call a rest api in unity3d, does the cURL works? or there is other way to do it, thanks in adavanced for all the answers

Best Answers

Answers

  • Options

    Thank you guys, I actually tested the two ways with WWW and UnityWebRequest, I found that UnityWebRequest is better because when you want to do Put or Delete action, WWW can not do it

  • Options

    Guys, check this new package! I think we can improve our code making http requests using promises :smile:https://assetstore.unity.com/packages/tools/network/rest-client-for-unity-102501

  • Options

    I am using the package and everything works fine in Unity, but when I deploy it to my Hololens it doen't work any more. Following mistake pops up in VB.:

    Error CS0012 The type 'IPromise<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'RSG.Promise, Version=3.0.0.0, Culture=neutral,

    Do you know what to do? I am want a new developer and would be very grateful for every advice?

  • Options

    I solved the problem. Withs Tom solution everything works fine, but only in Unity. When I deploy it on the HoloLens it doesn't work. Do you have any idea guys?

  • Options

    The same thing happens to me, please, did anyone find any solution? If you could solve it, how?

  • Options

    I have the same problem. I tried UnityWebRegest and HttpClient. They work on the desktop, but not on the HoloLens.

  • Options

    Hey guys, I am not an expert, but I will try to help you. I solved it with UnityWebRequest. I changed the if condition (delete isnetworkerror) after yield return and I got the json in my Hologramms.

Sign In or Register to comment.