Sha256: 1e01b6925e086d928f115b1fc6066e0f673430ed1f629727a3ef15f55c91172e
Contents?: true
Size: 519 Bytes
Versions: 10
Compression:
Stored size: 519 Bytes
Contents
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
Version data entries
10 entries across 10 versions & 5 rubygems