public
Description: A Ruby wrapper for the Google Analytics API
Home | Edit | New

Logging In

Presently, only single-user login is supported, and is stored on the class. This means one signed-in user at a time. Log in as follows.

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.

Last edited by tpitale, Mon Oct 26 11:57:45 -0700 2009
Home | Edit | New
Versions: