Class: WeiboOAuth2::Api::V2::ShortUrl

Inherits:
Base
  • Object
show all
Defined in:
lib/weibo_2/api/v2/short_url.rb

Instance Method Summary collapse

Methods inherited from Base

#hashie, #initialize

Constructor Details

This class inherits a constructor from WeiboOAuth2::Api::V2::Base

Instance Method Details

#clicks(url_short, opt = {}) ⇒ Object



14
15
16
# File 'lib/weibo_2/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

#comment_comments(url_short, opt = {}) ⇒ Object



38
39
40
# File 'lib/weibo_2/api/v2/short_url.rb', line 38

def comment_comments(url_short, opt={})
  hashie get("short_url/comment/comments.json", :params => {:url_short => url_short}.merge(opt))
end

#comment_counts(url_short, opt = {}) ⇒ Object



34
35
36
# File 'lib/weibo_2/api/v2/short_url.rb', line 34

def comment_counts(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_2/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_2/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_2/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_2/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_2/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_2/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

read interfaces



6
7
8
# File 'lib/weibo_2/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