lib/authlogic_connect/oauth/tokens/oauth_token.rb~ in authlogic-connect-andrewacove-0.5.2 vs lib/authlogic_connect/oauth/tokens/oauth_token.rb~ in authlogic-connect-andrewacove-0.5.4
- old
+ new
@@ -16,11 +16,14 @@
self.class.oauth_version
end
def get(path, options = {})
credentials = self.class.send(:credentials)
+ puts "DEBUG: credentials #{credentials.to_yaml}"
config_options = credentials[:options] unless credentials.nil?
+ puts "DEBUG: config_options #{config_options.to_yaml}"
api_version = config_options[:api_version] unless config_options.nil?
+ puts "DEBUG: api_version #{api_version.to_yaml}"
path.insert(0, "/#{api_version}") unless api_version.nil?
client.get(path, options)
end
def post(path, body='', headers ={})