Skip to content

Instantly share code, notes, and snippets.

@aliirz
Created January 12, 2013 17:32
Show Gist options
  • Save aliirz/4519446 to your computer and use it in GitHub Desktop.
Save aliirz/4519446 to your computer and use it in GitHub Desktop.
def login
c = Curl::Easy.new("https://test.tag-a-bag.com/api/secure/login?email="+params[:email]+"&password="+params[:password])
c.ssl_verify_host = false
c.perform
puts c.body_str
render :json => c.body_str
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment