Module: Twitter::REST::API::Undocumented
Constant Summary
Constants included from Utils
Twitter::REST::API::Utils::DEFAULT_CURSOR, Twitter::REST::API::Utils::URI_SUBSTRING
Instance Method Summary collapse
- #following_followers_of(*args) ⇒ Object
-
#tweet_count(uri, options = {}) ⇒ Integer
Returns Tweets count for a URI.
Instance Method Details
#following_followers_of(options = {}) ⇒ Object #following_followers_of(user, options = {}) ⇒ Object
Note:
Undocumented
32 33 34 |
# File 'lib/twitter/rest/api/undocumented.rb', line 32 def following_followers_of(*args) cursor_from_response_with_user(:users, Twitter::User, :get, "/users/following_followers_of.json", args) end |
#tweet_count(uri, options = {}) ⇒ Integer
Note:
Undocumented
Returns Tweets count for a URI
44 45 46 47 |
# File 'lib/twitter/rest/api/undocumented.rb', line 44 def tweet_count(uri, ={}) connection = Faraday.new("https://cdn.api.twitter.com", .merge(:builder => middleware)) connection.get("/1/urls/count.json", .merge(:url => uri.to_s)).body[:count] end |