Class: Weibo::Api::V2::ShortUrl
- Inherits:
-
Base
- Object
- Base
- Weibo::Api::V2::ShortUrl
show all
- Defined in:
- lib/weibo_focus/api/v2/short_url.rb
Instance Method Summary
collapse
-
#clicks(url_short, opt = {}) ⇒ Object
-
#comment_comments(url_short, opt = {}) ⇒ Object
-
#comment_counts(url_short, opt = {}) ⇒ Object
-
#expand(url_short, opt = {}) ⇒ Object
-
#info(url_short, opt = {}) ⇒ Object
-
#locations(url_short, opt = {}) ⇒ Object
-
#referers(url_short, opt = {}) ⇒ Object
-
#share_counts(url_short, opt = {}) ⇒ Object
-
#share_statuses(url_short, opt = {}) ⇒ Object
-
#shorten(url_long, opt = {}) ⇒ Object
Methods inherited from Base
#hashie, #initialize
Instance Method Details
#clicks(url_short, opt = {}) ⇒ Object
14
15
16
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 14
def clicks(url_short, opt={})
hashie get("short_url/clicks.json", :params => {:url_short => url_short}.merge(opt))
end
|
38
39
40
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 38
def (url_short, opt={})
hashie get("short_url/comment/comments.json", :params => {:url_short => url_short}.merge(opt))
end
|
34
35
36
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 34
def (url_short, opt={})
hashie get("short_url/comment/counts.json", :params => {:url_short => url_short}.merge(opt))
end
|
#expand(url_short, opt = {}) ⇒ Object
10
11
12
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 10
def expand(url_short, opt={})
hashie get("short_url/expand.json", :params => {:url_short => url_short}.merge(opt))
end
|
#info(url_short, opt = {}) ⇒ Object
42
43
44
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 42
def info(url_short, opt={})
hashie get("short_url/info.json", :params => {:url_short => url_short}.merge(opt))
end
|
#locations(url_short, opt = {}) ⇒ Object
22
23
24
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 22
def locations(url_short, opt={})
hashie get("short_url/locations.json", :params => {:url_short => url_short}.merge(opt))
end
|
#referers(url_short, opt = {}) ⇒ Object
18
19
20
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 18
def referers(url_short, opt={})
hashie get("short_url/referers.json", :params => {:url_short => url_short}.merge(opt))
end
|
#share_counts(url_short, opt = {}) ⇒ Object
26
27
28
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 26
def share_counts(url_short, opt={})
hashie get("short_url/share/counts.json", :params => {:url_short => url_short}.merge(opt))
end
|
#share_statuses(url_short, opt = {}) ⇒ Object
30
31
32
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 30
def share_statuses(url_short, opt={})
hashie get("short_url/share/statuses.json", :params => {:url_short => url_short}.merge(opt))
end
|
#shorten(url_long, opt = {}) ⇒ Object
6
7
8
|
# File 'lib/weibo_focus/api/v2/short_url.rb', line 6
def shorten(url_long, opt={})
hashie get("short_url/shorten.json", :params => {:url_long => url_long}.merge(opt))
end
|