Sha256: b2d99a3f6b4a938a3d85fb6e45b00049afbf1239da6509944ff438a62d8d512f

Contents?: true

Size: 574 Bytes

Versions: 27

Compression:

Stored size: 574 Bytes

Contents

# http://www.vimeo.com/api/docs/oauth
# http://www.vimeo.com/api/applications/new
# http://vimeo.com/api/applications
class VimeoToken < OauthToken
  
  key do |access_token|
    body = JSON.parse(access_token.get("http://vimeo.com/api/v2/#{access_token.token}/info.json"))
    user_id = body.first["id"]
  end
  
  settings "http://vimeo.com",
    :request_token_path => "/oauth/request_token",
    :authorize_path     => "/oauth/authorize",
    :access_token_path  => "/oauth/access_token",
    :http_method        => "get",
    :scheme             => :query_string
  
end

Version data entries

27 entries across 27 versions & 9 rubygems

Version Path
robdimarco-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
anideo-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
jspooner-authlogic-connect-0.0.20 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
jspooner-authlogic-connect-0.0.19 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
foreverman-authlogic-connect-0.0.4 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
foreverman-authlogic-connect-0.0.3 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
foreverman-authlogic-connect-0.0.2 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
foreverman-authlogic-connect-0.0.1 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
foreverman-authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
passport-0.1.1 lib/passport/oauth/tokens/vimeo_token.rb
authlogic-connect-andrewacove-0.5.7 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-0.0.6 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-0.0.5.1 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-0.0.5 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-andrewacove-0.5.6 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-andrewacove-0.5.5 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-andrewacove-0.5.4 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-andrewacove-0.5.2 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-andrewacove-0.5.0 lib/authlogic_connect/oauth/tokens/vimeo_token.rb
authlogic-connect-0.0.4.06 lib/authlogic_connect/oauth/tokens/vimeo_token.rb