Quantcast
Viewing all articles
Browse latest Browse all 190

How do I make this GET request in Unity?

curl 'https://api.sketchfab.com/v3/models/{UID}/download' -H 'authorization: Bearer {INSERT_USER_OAUTH_ACCESS_TOKEN}' I'm trying to make this API call but it doesn't appear to be working. I essentially have : public void loadFromSF() { // string url = "'https://api.sketchfab.com/v3/models/" + modelID + "/download'"; // //string url2 = "'authorization: Bearer { "+token+"}'"; string url2 = "'authorization: Bearer " + token + "'"; //Get request StartCoroutine(Req(url, url2)); } IEnumerator Req(string url,string url2){ //Get request WWW req = new WWW(url + " -H " + url2); yield return req; Debug.Log(req.text); }

Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>