Class: YahooToken::SocialAPI
- Inherits:
-
Oauth::Models::Consumers::SimpleClient
- Object
- Oauth::Models::Consumers::SimpleClient
- YahooToken::SocialAPI
- Defined in:
- lib/muck_oauth/services/yahoo_token.rb
Instance Method Summary collapse
- #contacts ⇒ Object
-
#guid ⇒ Object
initial implementation of this developer.yahoo.com/social/rest_api_guide/index.html Please fork and submit improvements here.
- #idcard ⇒ Object
- #profile ⇒ Object
- #tinyusercard ⇒ Object
- #usercard ⇒ Object
Instance Method Details
#contacts ⇒ Object
72 73 74 |
# File 'lib/muck_oauth/services/yahoo_token.rb', line 72 def contacts get("/v1/user/#{guid}/contacts") end |
#guid ⇒ Object
initial implementation of this developer.yahoo.com/social/rest_api_guide/index.html Please fork and submit improvements here
52 53 54 |
# File 'lib/muck_oauth/services/yahoo_token.rb', line 52 def guid @guid ||= get("/v1/me/guid")["guid"]["value"] end |
#idcard ⇒ Object
60 61 62 |
# File 'lib/muck_oauth/services/yahoo_token.rb', line 60 def idcard get("/v1/user/#{guid}/profile/idcard") end |
#profile ⇒ Object
68 69 70 |
# File 'lib/muck_oauth/services/yahoo_token.rb', line 68 def profile get("/v1/user/#{guid}/profile") end |
#tinyusercard ⇒ Object
64 65 66 |
# File 'lib/muck_oauth/services/yahoo_token.rb', line 64 def tinyusercard get("/v1/user/#{guid}/profile/tinyusercard") end |
#usercard ⇒ Object
56 57 58 |
# File 'lib/muck_oauth/services/yahoo_token.rb', line 56 def usercard get("/v1/user/#{guid}/profile/usercard") end |