Skip to content

Commit

Permalink
Add Version params to access_token call
Browse files Browse the repository at this point in the history
As of January 28, 2014, requests that do not include a v parameter will be rejected.

https://developer.foursquare.com/overview/versioning
  • Loading branch information
andreazaupa committed Jan 29, 2014
1 parent 28bc002 commit 89b7f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/foursquare.rb
Expand Up @@ -39,7 +39,7 @@ def auth_hash
def raw_info
access_token.options[:mode] = :query
access_token.options[:param_name] = :oauth_token
@raw_info ||= access_token.get('https://api.foursquare.com/v2/users/self').parsed['response']['user']
@raw_info ||= access_token.get('https://api.foursquare.com/v2/users/self?v=20140128').parsed['response']['user']
end

private
Expand Down

0 comments on commit 89b7f9b

Please sign in to comment.