Class: Youku::V2::Comments::Hot
- Defined in:
- lib/youku/v2/comments.rb
Constant Summary collapse
- BASE_URI =
"#{BASE_URI}/hot"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#by_video(video_id: nil, page: 1, count: 20) ⇒ Object
Public: Get hot comments given a video.
Instance Method Details
#by_video(video_id: nil, page: 1, count: 20) ⇒ Object
Public: Get hot comments given a video.
See: open.youku.com/docs?id=36
video_id - The string video ID. page - The Integer page number. count - The Integer page size.
Returns the instance of Youku::V2::Request.
71 72 73 74 75 76 77 78 |
# File 'lib/youku/v2/comments.rb', line 71 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 |