Class: OmniAuth::Strategies::Gowalla
- Defined in:
- lib/omniauth/strategies/gowalla.rb
Overview
Authenticate to Gowalla utilizing OAuth 2.0 and retrieve basic user information.
Instance Attribute Summary
Attributes inherited from OAuth2
#client_id, #client_options, #client_secret, #options
Instance Method Summary collapse
-
#initialize(app, api_key = nil, secret_key = nil, options = {}, &block) ⇒ Gowalla
constructor
A new instance of Gowalla.
Methods inherited from OAuth2
Constructor Details
#initialize(app, api_key = nil, secret_key = nil, options = {}, &block) ⇒ Gowalla
Returns a new instance of Gowalla.
17 18 19 20 21 22 23 24 25 |
# File 'lib/omniauth/strategies/gowalla.rb', line 17 def initialize(app, api_key = nil, secret_key = nil, = {}, &block) = { :site => 'https://api.gowalla.com/api/oauth', :authorize_url => 'https://gowalla.com/api/oauth/new', :access_token_url => 'https://api.gowalla.com/api/oauth/token' } super(app, :gowalla, api_key, secret_key, , , &block) end |