Unity: make GET request using RestSharp from Android device
$30-250 USD
Cancelled
Posted over 5 years ago
$30-250 USD
Paid on delivery
I'm using Unity 2018.2.14 and I'm trying to make a GET request with RestSharp. It works fine on Editor (windows and Mac) but on Android I keep getting a null response.
I need you to send me the code snippet for a successful request working on android (if possible in Editor as well). I hope it can be done with RestSharp so I don't need to modify my files that depend on it, but you can change it and use other library if there's no other way as long as you keep using [login to view URL] and not Unity Coroutines for the asynchronous call.
This is the GET request I need you to make:
```
curl -X GET \
-H "X-Parse-Application-Id: ${APPLICATION_ID}" \
-H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
-H "X-Parse-Revocable-Session: 1" \
-G \
--data-urlencode 'username=cooldude6' \
--data-urlencode 'password=p_n7!-e8' \
[login to view URL]
```
the data to send:
Url: [login to view URL]
App Id: amYOJamNXdtnujnBAs7IWfPcNwzWRlRxwq4AEv5r
Rest Key: ATDHuabuxfiRYCHZzd8iAWVTfgOv6E7w8sS4KAxn
username: abc@abc
password: abc
The response you'll get on success should look something like this:
```
{
"username": "cooldude6",
"phone": "415-392-0202",
"createdAt": "2011-11-07T20:58:34.448Z",
"updatedAt": "2011-11-07T20:58:34.448Z",
"objectId": "g7y9tkhB7O",
"sessionToken": "r:pnktnjyb996sj4p156gjtp4im"
}
```
Please start your proposal with "RestSharp" so I know you read this at least. As deliverable please send me a video proving the request is successful on an android device and then the code snippet to reproduce it.
More info on this REST API: [login to view URL]
hi
i can help u with this.
....................................................................................
...............................................
...................