AnilKChadha
Programmer
Hi,
Does anyone in the community has any knowledge on using VFP 9 to access the Parse.Com Restful API?
e.g Here's a CURL script
curl -X POST -H "X-Parse-Application-Id: rEQZDWCoN3MbhOQwSZMMU2MgDKWYp5AQSRlRZJ2H" -H "X-Parse-REST-API-Key: 9pnEkZ93SuZBQfyHRBW735whEwOvUkS3QU1tfoXo" -H "Content-Type: application/json" -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}'
and here's a Python script
import json,httplib
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/classes/GameScore', json.dumps({
"score": 1337,
"playerName": "Sean Plott",
"cheatMode": False
}), {
"X-Parse-Application-Id": "rEQZDWCoN3MbhOQwSZMMU2MgDKWYp5AQSRlRZJ2H",
"X-Parse-REST-API-Key": "9pnEkZ93SuZBQfyHRBW735whEwOvUkS3QU1tfoXo",
"Content-Type": "application/json"
})
results = json.loads(connection.getresponse().read())
print results
Thanks in advance
Does anyone in the community has any knowledge on using VFP 9 to access the Parse.Com Restful API?
e.g Here's a CURL script
curl -X POST -H "X-Parse-Application-Id: rEQZDWCoN3MbhOQwSZMMU2MgDKWYp5AQSRlRZJ2H" -H "X-Parse-REST-API-Key: 9pnEkZ93SuZBQfyHRBW735whEwOvUkS3QU1tfoXo" -H "Content-Type: application/json" -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}'
and here's a Python script
import json,httplib
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/classes/GameScore', json.dumps({
"score": 1337,
"playerName": "Sean Plott",
"cheatMode": False
}), {
"X-Parse-Application-Id": "rEQZDWCoN3MbhOQwSZMMU2MgDKWYp5AQSRlRZJ2H",
"X-Parse-REST-API-Key": "9pnEkZ93SuZBQfyHRBW735whEwOvUkS3QU1tfoXo",
"Content-Type": "application/json"
})
results = json.loads(connection.getresponse().read())
print results
Thanks in advance