Class: Youku::V2::Comments
Constant Summary collapse
- BASE_URI =
"#{BASE_URI}/comments"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#by_video(video_id: nil, page: 1, count: 20) ⇒ Object
Public: Get comments by a video ID.
Instance Method Details
#by_video(video_id: nil, page: 1, count: 20) ⇒ Object
Public: Get comments by a video ID
See: open.youku.com/docs?id=35
video_id - The string video ID. page - The Integer page number. count - The Integer page size.
Returns the instance of Youku::V2::Request.
15 16 17 18 19 20 21 22 |
# File 'lib/youku/v2/comments.rb', line 15 def by_video(video_id: nil, page: 1, count: 20) Youku::V2::Request.new "#{BASE_URI}/by_video.json", { client_id: client.client_id, video_id: video_id, page: page, count: count, } end |