Module: Goodreads::Friends
- Included in:
- Client
- Defined in:
- lib/goodreads/client/friends.rb
Instance Method Summary collapse
-
#friends(user_id) ⇒ Object
Get the specified user’s friends.
Instance Method Details
#friends(user_id) ⇒ Object
Get the specified user’s friends
user_id - integer or string
7 8 9 10 |
# File 'lib/goodreads/client/friends.rb', line 7 def friends(user_id) data = oauth_request("/friend/user/#{user_id}") Hashie::Mash.new(data['friends']) end |