Module: Twitter::REST::Undocumented
Constant Summary
Constants included from Utils
Twitter::REST::Utils::DEFAULT_CURSOR, Twitter::REST::Utils::URI_SUBSTRING
Instance Method Summary collapse
- #following_followers_of(*args) ⇒ Twitter::Cursor
-
#tweet_count(uri, options = {}) ⇒ Integer
Returns Tweets count for a URI.
Methods included from Utils
Instance Method Details
#following_followers_of(options = {}) ⇒ Twitter::Cursor #following_followers_of(user, options = {}) ⇒ Twitter::Cursor
Note:
Undocumented
26 27 28 |
# File 'lib/twitter/rest/undocumented.rb', line 26 def following_followers_of(*args) cursor_from_response_with_user(:users, Twitter::User, '/users/following_followers_of.json', args) end |
#tweet_count(uri, options = {}) ⇒ Integer
Note:
Undocumented
Returns Tweets count for a URI
38 39 40 41 |
# File 'lib/twitter/rest/undocumented.rb', line 38 def tweet_count(uri, = {}) connection = Faraday.new('https://cdn.api.twitter.com', ) connection.get('/1/urls/count.json', .merge(:url => uri.to_s)).body[:count] end |