import json,httplib,urllib
connection = httplib.HTTPSConnection(‘api.parse.com’, 443)
params =
urllib.urlencode({“username”:“cooldude6”,“password”:“p_n7!-e8”})
connection.connect()
connection.request(‘GET’, ‘/1/login?%s’ % params, ‘’, {
“X-Parse-Application-Id”: “${APPLICATION_ID}”,
“X-Parse-REST-API-Key”: “${REST_API_KEY}”,
“X-Parse-Revocable-Session”: “1”
})
result = json.loads(connection.getresponse().read())
print result
I need ruby equalant code for this python script