Module: Twitter::REST::Undocumented

Includes:
Utils
Included in:
API
Defined in:
lib/twitter/rest/undocumented.rb

Constant Summary

Constant Summary

Constants included from Utils

Twitter::REST::Utils::DEFAULT_CURSOR, Twitter::REST::Utils::URI_SUBSTRING

Instance Method Summary (collapse)

Methods included from Utils

flat_pmap, pmap, pmap_with_index

Instance Method Details

- (Twitter::Cursor) following_followers_of(options = {}) - (Twitter::Cursor) following_followers_of(user, options = {})

Note:

Undocumented

Overloads:

  • - (Twitter::Cursor) following_followers_of(options = {})

    Returns users following followers of the specified user

    Parameters:

    • options (Hash) (defaults to: {})

      A customizable set of options.

  • - (Twitter::Cursor) following_followers_of(user, options = {})

    Returns users following followers of the authenticated user

    Parameters:

    • user (Integer, String, Twitter::User)

      A Twitter user ID, screen name, URI, or object.

    • options (Hash) (defaults to: {})

      A customizable set of options.

Returns:

Raises:

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



26
27
28
# File 'lib/twitter/rest/undocumented.rb', line 26

def following_followers_of(*args)
  cursor_from_response_with_user(:users, Twitter::User, :get, '/users/following_followers_of.json', args)
end

- (Integer) tweet_count(uri, options = {})

Note:

Undocumented

Returns Tweets count for a URI

Parameters:

  • uri (String, URI)

    A URI.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Integer)

Rate Limited?:

  • No

Authentication:

  • Not required



38
39
40
41
# File 'lib/twitter/rest/undocumented.rb', line 38

def tweet_count(uri, options = {})
  connection = Faraday.new('https://cdn.api.twitter.com', connection_options.merge(:builder => middleware))
  connection.get('/1/urls/count.json', options.merge(:url => uri.to_s)).body[:count]
end