lib/authlogic_connect/oauth/tokens/vimeo_token.rb in authlogic-connect-0.0.3.6 vs lib/authlogic_connect/oauth/tokens/vimeo_token.rb in authlogic-connect-0.0.3.8
- old
+ new
@@ -1,8 +1,18 @@
# 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",
- :authorize_url => "http://vimeo.com/oauth/authorize"
+ :request_token_path => "/oauth/request_token",
+ :authorize_path => "/oauth/authorize",
+ :access_token_path => "/oauth/access_token",
+ :http_method => "get",
+ :scheme => :query_string
end
\ No newline at end of file