Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access via Simple API Access Key #112

Open
robj opened this issue Feb 20, 2012 · 2 comments
Open

Access via Simple API Access Key #112

robj opened this issue Feb 20, 2012 · 2 comments

Comments

@robj
Copy link

robj commented Feb 20, 2012

Is this possible? To use the 'Key for browser apps (with referers)'

I dont want to use oauth as I want reports created on behalf of users automatically, not users interacting with OAuth.

The Username/Password combo is fickle, as invalid login attempts for google analytics website can result in blocking API access.

@sat
Copy link

sat commented Feb 28, 2012

Quick fix, put this in an initialiser.

module Garb
  module Request
    class Data
      def query_string
        @parameters.merge!("key" => "PUT API KEY HERE")
        parameter_list = @parameters.map {|k,v| "#{k}=#{v}" }
        parameter_list.empty? ? '' : "?#{parameter_list.join('&')}"
      end
    end
  end
end

@erictarn
Copy link

Is there a way to do this now without monkey patching? I think you need an API key now to increase your limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants