zackchandler (owner)

Revisions

gist: 218875 Download_button fork
public
Public Clone URL: git://gist.github.com/218875.git
Embed All Files: show embed
garb.rb #
1
2
3
4
5
6
7
8
9
10
11
require 'garb'
username = 'foo'
password = 'bar'
Garb::Session.login(username, password)
profile = Garb::Profile.all.select{ |p| p.title == 'foobar' }.first
options = {
  :metrics => [ :visits ],
  :dimensions => [ :date ]
}
report = Garb::Report.new(profile, options)
results = report.results