Sha256: cb170a36d0a1febac87896ca6ccb827603f4e239d637b2f4749d86d7c0134824

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

module Goodreads
  module Friends
    # Get the specified user's friends
    #
    # user_id - integer or string
    #
    def friends(user_id, options={})
      data = oauth_request("/friend/user/#{user_id}", options)
      Hashie::Mash.new(data["friends"])
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
goodreads-0.9.0 lib/goodreads/client/friends.rb
goodreads-0.8.0 lib/goodreads/client/friends.rb
goodreads-0.7.0 lib/goodreads/client/friends.rb
goodreads-0.6.2 lib/goodreads/client/friends.rb
goodreads-0.6.1 lib/goodreads/client/friends.rb