Module: Twitter::REST::Undocumented

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

Overview

Undocumented Twitter API endpoints

Constant Summary

Constants included from Utils

Twitter::REST::Utils::DEFAULT_CURSOR

Instance Method Summary collapse

Methods included from Utils

flat_pmap, pmap

Instance Method Details

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

Note:

Undocumented

Returns users following followers of the specified user

Examples:

client.following_followers_of('sferik')

Overloads:

  • #following_followers_of(options = {}) ⇒ Twitter::Cursor

    Returns users following followers of the specified user

    Parameters:

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

      A customizable set of options.

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

    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:



32
33
34
# File 'lib/twitter/rest/undocumented.rb', line 32

def following_followers_of(*args)
  cursor_from_response_with_user(:users, User, "/users/following_followers_of.json", args)
end

#tweet_count(url, options = {}) ⇒ Integer

Note:

Undocumented

Returns Tweets count for a URI

Examples:

client.tweet_count('https://twitter.com')

Parameters:

  • url (String, URI)

    A URL.

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

    A customizable set of options.

Returns:

  • (Integer)


47
48
49
# File 'lib/twitter/rest/undocumented.rb', line 47

def tweet_count(url, options = {})
  HTTP.get("https://cdn.api.twitter.com/1/urls/count.json", params: options.merge(url: url.to_s)).parse["count"] # steep:ignore NoMethod
end