Class: Youku::V2::Users::Friendship
- Defined in:
- lib/youku/v2/users.rb
Constant Summary collapse
- BASE_URI =
"#{BASE_URI}/friendship"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#followers(user_id: nil, user_name: nil, page: 1, count: 20) ⇒ Object
Public: Get the users a given user is following.
-
#followings(user_id: nil, user_name: nil, page: 1, count: 20) ⇒ Object
Public: Get the users following a given user.
Instance Method Details
#followers(user_id: nil, user_name: nil, page: 1, count: 20) ⇒ Object
Public: Get the users a given user is following.
See: open.youku.com/docs?id=27
user_id - The String Youku user ID. user_name - The String Youku user name. page - The Integer page number. count - The Integer page size.
Returns the instance of Youku::V2::Request.
78 79 80 81 82 83 84 85 86 |
# File 'lib/youku/v2/users.rb', line 78 def followers(user_id: nil, user_name: nil, page: 1, count: 20) Youku::V2::Request.new "#{BASE_URI}/followers.json", { client_id: client.client_id, user_id: user_id, user_name: user_name, page: page, count: count, } end |
#followings(user_id: nil, user_name: nil, page: 1, count: 20) ⇒ Object
Public: Get the users following a given user.
See: open.youku.com/docs?id=26
user_id - The String Youku user ID. user_name - The String Youku user name. page - The Integer page number. count - The Integer page size.
Returns the instance of Youku::V2::Request.
58 59 60 61 62 63 64 65 66 |
# File 'lib/youku/v2/users.rb', line 58 def followings(user_id: nil, user_name: nil, page: 1, count: 20) Youku::V2::Request.new "#{BASE_URI}/followings.json", { client_id: client.client_id, user_id: user_id, user_name: user_name, page: page, count: count, } end |