Convert python script to ruby script

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

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