I know that you will recommend me to download
Parse .Net SDK.
But the problem is that it uses Tasks which are only available in .Net 4.5
The older versions of .Net are not supported.
That is why I am going to use parse REST APIs.
Having a problem in understanding.
Here is how to create parse object:
https://parse.com/docs/rest#objects-creating
curl -X POST \
-H "X-Parse-Application-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "X-Parse-REST-API-Key: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" \
-H "Content-Type: application/json" \
-d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
https://api.parse.com/1/classes/GameScore
I don't know how to add "-d" string(JSon) to the request.
I tried and here is my code:
Using client As New WebClient
Dim values As New NameValueCollection
values("X-Parse-Application-Id") = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
values("X-Parse-REST-API-Key") = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
values("Content-Type") = "application/json"
Dim response = client.UploadValues("https://api.parse.com/1/classes/GameScore", values)
Dim str = System.Text.Encoding.Default.GetString(response)
End Using
And it is returning this error: (401) Unauthorized
Allow time to reverse.