top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to convert python script to ruby script

+2 votes
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 equivalent code for this python script

posted Jul 16, 2015 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+3 votes

I have a python script that is currently run from cron. We want to make it into a service so it can be controlled with service start/stop/restart.
Can anyone point me at site that has instructions on how to do this?

0 votes

I have a dilemma I cant figure out how to send multiple files as an attachment to my email using python script. I can only send a single file attachment .