Class: Weibo::Api::V2::Comments
- Inherits:
-
Base
- Object
- Base
- Weibo::Api::V2::Comments
show all
- Defined in:
- lib/weibo_focus/api/v2/comments.rb
Instance Method Summary
collapse
Methods inherited from Base
#hashie, #initialize
Instance Method Details
#by_me(opt = {}) ⇒ Object
11
12
13
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 11
def by_me(opt={})
hashie get("comments/by_me.json", :params => opt)
end
|
#create(comment, id, opt = {}) ⇒ Object
32
33
34
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 32
def create(, id, opt={})
hashie post("comments/create.json", :params => {:comment => , :id => id}.merge(opt))
end
|
#destroy(cid, opt = {}) ⇒ Object
36
37
38
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 36
def destroy(cid, opt={})
hashie post("comments/destroy.json", :params => {:cid => cid}.merge(opt))
end
|
#destroy_batch(cids, opt = {}) ⇒ Object
40
41
42
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 40
def destroy_batch(cids, opt={})
hashie post("comments/destroy_batch.json", :params => {:cids => cids}.merge(opt))
end
|
#mentions(opt = {}) ⇒ Object
23
24
25
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 23
def mentions(opt={})
hashie get("comments/mentions.json", :params => opt)
end
|
#reply(cid, id, comment, opt = {}) ⇒ Object
44
45
46
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 44
def reply(cid, id, , opt={})
hashie post("comments/reply.json", :params => {:cid => cid, :id => id, :comment => }.merge(opt))
end
|
#show(id, opt = {}) ⇒ Object
7
8
9
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 7
def show(id, opt={})
hashie get("comments/show.json", :params => {:id => id}.merge(opt))
end
|
#show_batch(cids, opt = {}) ⇒ Object
27
28
29
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 27
def show_batch(cids, opt={})
hashie get("comments/show_batch.json", :params => {:cids => cids}.merge(opt))
end
|
#timeline(opt = {}) ⇒ Object
19
20
21
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 19
def timeline(opt={})
hashie get("comments/timeline.json", :params => opt)
end
|
#to_me(opt = {}) ⇒ Object
15
16
17
|
# File 'lib/weibo_focus/api/v2/comments.rb', line 15
def to_me(opt={})
hashie get("comments/to_me.json", :params => opt)
end
|