Convert python script to ruby script

import json,httplib,urllib
connection = httplib.HTTPSConnection(‘’, 443)
params =
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs