Sha256: 11a370235afa20585323c27af4ab15b50fb2687ba1c44e4d251b710a4c4b4d50
Contents?: true
Size: 756 Bytes
Versions: 10
Compression:
Stored size: 756 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) super(app, :tripit, consumer_key, consumer_secret, {:site => 'https://api.tripit.com', :request_token_path => "/oauth/request_token", :access_token_path => "/oauth/access_token", :authorize_url => "https://www.tripit.com/oauth/authorize"}, options, &block) end end end end
Version data entries
10 entries across 10 versions & 2 rubygems