diff --git a/lib/foursquare.rb b/lib/foursquare.rb index 0d10207..b54a5bf 100644 --- a/lib/foursquare.rb +++ b/lib/foursquare.rb @@ -10,7 +10,7 @@ module Foursquare class OAuth def initialize(ctoken, csecret, options={}) - @consumer_token, @consumer_secret = ctoken, csecret + @consumer_token, @consumer_secret , @options = ctoken, csecret ,options end def consumer @@ -23,7 +23,7 @@ def consumer :access_token_path => "/oauth/access_token", :authorize_path => "/oauth/authorize", :proxy => (ENV['HTTP_PROXY'] || ENV['http_proxy']) - }) + }.merge(@options)) end def set_callback_url(url) @@ -224,4 +224,4 @@ class General < StandardError; end class Unavailable < StandardError; end class InternalError < StandardError; end class NotFound < StandardError; end -end \ No newline at end of file +end