Class: GoogleOAuth::RequestToken

Inherits:
OAuth::RequestToken
  • Object
show all
Defined in:
lib/contacts/google_oauth.rb

Instance Method Summary collapse

Instance Method Details

#authorize_url(params = {}) ⇒ Object



7
8
9
10
11
# File 'lib/contacts/google_oauth.rb', line 7

def authorize_url(params={})
  params.merge! :oauth_token => token
  params = params.map { |k,v| "%s=%s" % [CGI.escape(k.to_s), CGI.escape(v)] }
  consumer.authorize_url + "?" + params.join("&")
end