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

Version Path
robdimarco-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
anideo-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
jspooner-authlogic-connect-0.0.20 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
jspooner-authlogic-connect-0.0.19 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
foreverman-authlogic-connect-0.0.4 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
foreverman-authlogic-connect-0.0.3 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
foreverman-authlogic-connect-0.0.2 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
foreverman-authlogic-connect-0.0.1 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
foreverman-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/foursquare_token.rb
authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/foursquare_token.rb