garb
garb copied to clipboard
A Ruby wrapper for the Google Analytics API
Google API now supports OAuth2. The OAuth2 gem uses Faraday wrapped by its own OAuth2::Response class. This class behaves differently than Net::HTTP that the OAuth gem depends on. The key...
Seems that API version 2.3 was shutdown and Garb is not working anymore.
The simple login throws an error I don't understand: ``` ruby Garb::Session.login("myuser", "mypassword") ``` ``` Garb::AuthenticationRequest::AuthError: Garb::AuthenticationRequest::AuthError from /var/lib/gems/1.9.1/gems/garb-0.9.1/lib/garb/authentication_request.rb:37:in `block in send_request' from /usr/lib/ruby/1.9.1/net/http.rb:1322:in `block (2 levels) in transport_request' from...
This lets you paginate over all results, not just the last 1000. ``` ruby Pageviews.all(profile) do |row| puts "#{row.page_path} => #{row.pageviews}" end ``` Note that the :limit option applies to...
Hi - this fixes ``` garb at /blah/ruby/1.9.1/bundler/gems/garb-ef3fc65015b5 did not have a valid gemspec. This prevents bundler from installing bins or native extensions, but that may not affect its functionality....
Details of the patch to p392 are here... http://www.ruby-lang.org/en/news/2013/02/22/rexml-dos-2013-02-22/ When garb .results is called now this error is the result... uninitialized constant REXML::Text::Document
Hi vigetlabs, the link : http://code.google.com/intl/fr-FR/apis/analytics/docs/gdata/gdataDeveloperGuide.html is dead, you want to link something like this instead http://code.google.com/intl/fr-FR/apis/analytics/docs/gdata/v3/gdataGettingStarted.html ?
irb(main):046:0> Pageviews.results(@profile, :filters => {:page_path.contains => '/'}) NoMethodError: undefined method `contains' for :page_path:Symbol from (irb):46 from /data/clickfusion/shared/bundled_gems/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in`start' from /data/clickfusion/shared/bundled_gems/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start' from /data/clickfusion/shared/bundled_gems/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:40:in`' from script/rails:6:in `require' from script/rails:6:in`' This just stopped...
Looks like there is a bug in 0.9.1 where :filters => [{:customVarValue5.eql => 'foo'}, {:customVarValue5.eql => 'bar'}] ends up encoding as "filters=%3B" in the url.