Skip to content

Instantly share code, notes, and snippets.

@alkema
Created February 20, 2010 02:24
Show Gist options
  • Select an option

  • Save alkema/309452 to your computer and use it in GitHub Desktop.

Select an option

Save alkema/309452 to your computer and use it in GitHub Desktop.
require 'rest_client'
params = { "accountType" => "HOSTED_OR_GOOGLE", "Email" => '[email protected]', "Passwd" => 'secret', "service" => "writely" }
result = RestClient.post "https://www.google.com/accounts/ClientLogin", params
result.to_s[/Auth=(.*)/, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment