Class: OmniAuth::Strategies::Bitly
- Defined in:
- lib/omniauth/strategies/bitly.rb
Overview
Authenticate to Bitly 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) ⇒ Bitly
constructor
A new instance of Bitly.
Methods inherited from OAuth2
Constructor Details
#initialize(app, api_key = nil, secret_key = nil, options = {}, &block) ⇒ Bitly
Returns a new instance of Bitly.
16 17 18 19 20 21 22 23 24 |
# File 'lib/omniauth/strategies/bitly.rb', line 16 def initialize(app, api_key = nil, secret_key = nil, = {}, &block) = { :site => 'https://bit.ly', :authorize_url => 'https://bit.ly/oauth/authorize', :access_token_url => 'https://api-ssl.bit.ly/oauth/access_token' } super(app, :bitly, api_key, secret_key, , , &block) end |