Class: Youku::V2::Users

Inherits:
Base
  • Object
show all
Defined in:
lib/youku/v2/users.rb

Constant Summary collapse

BASE_URI =
"#{BASE_URI}/users"

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Instance Method Details

#show_batch(user_ids: nil, user_names: nil) ⇒ Object

Public: Get users by IDs

See: open.youku.com/docs?id=25

user_ids - The comma separated String of user IDs. user_names - The comma separated String of user names.

Returns the instance of Youku::V2::Request.



14
15
16
17
18
19
20
# File 'lib/youku/v2/users.rb', line 14

def show_batch(user_ids: nil, user_names: nil)
  Youku::V2::Request.new "#{BASE_URI}/show_batch.json", {
    client_id:  client.client_id,
    user_ids:   user_ids,
    user_names: user_names
  }
end