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);
}
↧