Class: Weibo::Api::V2::Statuses
- Inherits:
-
Base
- Object
- Base
- Weibo::Api::V2::Statuses
show all
- Defined in:
- lib/weibo_focus/api/v2/statuses.rb
Instance Method Summary
collapse
Methods inherited from Base
#hashie, #initialize
Instance Method Details
#bilateral_timeline(opt = {}) ⇒ Object
51
52
53
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 51
def bilateral_timeline(opt={})
hashie get("statuses/bilateral_timeline.json", :params => opt)
end
|
#count(opt = {}) ⇒ Object
83
84
85
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 83
def count(opt={})
hashie get("statuses/count.json", :params => opt)
end
|
#destroy(id) ⇒ Object
92
93
94
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 92
def destroy(id)
hashie post("statuses/destroy.json", :params => {"id" => id})
end
|
#emotions(opt = {}) ⇒ Object
110
111
112
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 110
def emotions(opt={})
hashie get("emotions.json", :params => opt)
end
|
#friends_timeline(opt = {}) ⇒ Object
11
12
13
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 11
def friends_timeline(opt={})
hashie get("statuses/friends_timeline.json", :params => opt)
end
|
#friends_timeline_ids(opt = {}) ⇒ Object
19
20
21
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 19
def friends_timeline_ids(opt={})
hashie get("statuses/friends_timeline/ids.json", :params => opt)
end
|
#home_timeline(opt = {}) ⇒ Object
15
16
17
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 15
def home_timeline(opt={})
hashie get("statuses/home_timeline.json", :params => opt)
end
|
75
76
77
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 75
def (opt={})
hashie get("statuses/hot/comments_daily.json", :params => opt)
end
|
79
80
81
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 79
def (opt={})
hashie get("statuses/hot/comments_weekly.json", :params => opt)
end
|
#hot_repost_daily(opt = {}) ⇒ Object
67
68
69
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 67
def hot_repost_daily(opt={})
hashie get("statuses/hot/repost_daily.json", :params => opt)
end
|
#hot_repost_weekly(opt = {}) ⇒ Object
71
72
73
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 71
def hot_repost_weekly(opt={})
hashie get("statuses/hot/repost_weekly.json", :params => opt)
end
|
#mentions(opt = {}) ⇒ Object
43
44
45
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 43
def mentions(opt={})
hashie get("statuses/mentions.json", :params => opt)
end
|
#mentions_ids(opt = {}) ⇒ Object
47
48
49
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 47
def mentions_ids(opt={})
hashie get("statuses/mentions/ids.json", :params => opt)
end
|
#public_timeline(opt = {}) ⇒ Object
7
8
9
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 7
def public_timeline(opt={})
hashie get("statuses/public_timeline.json", :params => opt)
end
|
#queryid(opt = {}) ⇒ Object
63
64
65
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 63
def queryid(opt={})
hashie get("statuses/queryid.json", :params => opt)
end
|
#querymid(opt = {}) ⇒ Object
59
60
61
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 59
def querymid(opt={})
hashie get("statuses/querymid.json", :params => opt)
end
|
#repost(id, opt = {}) ⇒ Object
88
89
90
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 88
def repost(id, opt={})
hashie post("statuses/repost.json", :params => {"id" => id}.merge(opt))
end
|
#repost_by_me(opt = {}) ⇒ Object
39
40
41
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 39
def repost_by_me(opt={})
hashie get("statuses/repost_by_me.json", :params => opt)
end
|
#repost_timeline(id, opt = {}) ⇒ Object
31
32
33
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 31
def repost_timeline(id, opt={})
hashie get("statuses/repost_timeline.json", :params => {:id => id}.merge(opt))
end
|
#repost_timeline_ids(id, opt = {}) ⇒ Object
35
36
37
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 35
def repost_timeline_ids(id, opt={})
hashie get("statuses/repost_timeline/ids.json", :params => {:id => id}.merge(opt))
end
|
#show(opt = {}) ⇒ Object
55
56
57
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 55
def show(opt={})
hashie get("statuses/show.json", :params => opt)
end
|
#update(status, opt = {}) ⇒ Object
96
97
98
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 96
def update(status, opt={})
hashie post("statuses/update.json", :params => {"status" => status}.merge(opt))
end
|
#upload(status, pic, opt = {}) ⇒ Object
101
102
103
104
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 101
def upload(status, pic, opt={})
multipart = Base.build_multipart_bodies({"status" => status, "pic" => pic}.merge(opt))
hashie post("statuses/upload.json", :headers => multipart[:headers], :body => multipart[:body])
end
|
#upload_url_text(opt = {}) ⇒ Object
106
107
108
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 106
def upload_url_text(opt={})
hashie post("statuses/upload_url_text.json", :params => opt)
end
|
#user_timeline(opt = {}) ⇒ Object
23
24
25
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 23
def user_timeline(opt={})
hashie get("statuses/user_timeline.json", :params => opt)
end
|
#user_timeline_ids(opt = {}) ⇒ Object
27
28
29
|
# File 'lib/weibo_focus/api/v2/statuses.rb', line 27
def user_timeline_ids(opt={})
hashie get("statuses/user_timeline/ids.json", :params => opt)
end
|