Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: f48bedd6e7
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.519 kB
class FoursquareToken < OauthToken
key do |access_token|
body = JSON.parse(access_token.get("/user.json").body)
user_id = body['user']['id'].to_s
end
settings "http://api.foursquare.com/:api_version",
:request_token_url => "http://foursquare.com/oauth/request_token",
:access_token_url => "http://foursquare.com/oauth/access_token",
:authorize_url => "http://foursquare.com/oauth/authorize",
:api_versions => {1 => "v1", 2 => "v2"},
:api_version => 1
end
Jump to Line
Something went wrong with that request. Please try again.