Skip to content
tpitale edited this page Aug 13, 2010 · 8 revisions

Login with OAuth

Garb::Session.access_token = access_token

Read more: OAuth Session

Single-user Login

Garb::Session.login('username', 'password')

The login method now takes an options hash, which allows setting the account type like so (still defaults to HOSTED_OR_GOOGLE):

Garb::Session.login('username', 'password', :account_type => "GOOGLE")

You can now move on to getting Profiles and Building a Report.

SSL

Garb::Session.login('username', 'password', :secure => true)

Download http://curl.haxx.se/ca/cacert.pem into your application.

Point the constant:

CA_CERT_FILE
at the file.
Clone this wiki locally