Class: YahooToken::SocialAPI

Inherits:
Oauth::Models::Consumers::SimpleClient
  • Object
show all
Defined in:
lib/muck_oauth/services/yahoo_token.rb

Instance Method Summary collapse

Instance Method Details

#contactsObject



72
73
74
# File 'lib/muck_oauth/services/yahoo_token.rb', line 72

def contacts
  get("/v1/user/#{guid}/contacts")
end

#guidObject

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

#idcardObject



60
61
62
# File 'lib/muck_oauth/services/yahoo_token.rb', line 60

def idcard
  get("/v1/user/#{guid}/profile/idcard")
end

#profileObject



68
69
70
# File 'lib/muck_oauth/services/yahoo_token.rb', line 68

def profile
  get("/v1/user/#{guid}/profile")
end

#tinyusercardObject



64
65
66
# File 'lib/muck_oauth/services/yahoo_token.rb', line 64

def tinyusercard
  get("/v1/user/#{guid}/profile/tinyusercard")
end

#usercardObject



56
57
58
# File 'lib/muck_oauth/services/yahoo_token.rb', line 56

def usercard
  get("/v1/user/#{guid}/profile/usercard")
end