Sha256: e0c9a8b48c5a57a5169d4549a3e7b0f176d3712c06967656b3e9d1bb71d08bcf

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

class FoursquareToken < OauthToken
  
  key do |access_token|
    JSON.parse(access_token.get("/user.json").body)['user']['id']
  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

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/oauth/tokens/foursquare_token.rb