Sha256: ce4b491d283fb450b2cfb6029aed0b78af12873e6b9e6d9566ae4395efe2b133
Contents?: true
Size: 772 Bytes
Versions: 3
Compression:
Stored size: 772 Bytes
Contents
require 'omniauth/oauth' module OmniAuth module Strategies # # Authenticate to TripIt via OAuth and retrieve an access token for API usage # # Usage: # # use OmniAuth::Strategies::TripIt, 'consumerkey', 'consumersecret' # class TripIt < OmniAuth::Strategies::OAuth def initialize(app, consumer_key=nil, consumer_secret=nil, options={}, &block) client_options = { :access_token_path => '/oauth/access_token', :authorize_url => 'https://www.tripit.com/oauth/authorize', :request_token_path => '/oauth/request_token', :site => 'https://api.tripit.com', } super(app, :tripit, consumer_key, consumer_secret, client_options, options, &block) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oa-oauth-0.3.2 | lib/omniauth/strategies/oauth/trip_it.rb |
oa-oauth-0.3.0 | lib/omniauth/strategies/oauth/trip_it.rb |
oa-oauth-0.3.0.rc3 | lib/omniauth/strategies/oauth/trip_it.rb |