Module: Twitter::REST::Help

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

Constant Summary

Constants included from Utils

Utils::DEFAULT_CURSOR

Instance Method Summary collapse

Methods included from Utils

flat_pmap, pmap

Instance Method Details

#languages(options = {}) ⇒ Array<Twitter::Language>

Returns the list of languages supported by Twitter

Returns:

Raises:

See Also:

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



17
18
19
# File 'lib/twitter/rest/help.rb', line 17

def languages(options = {})
  perform_get_with_objects("/1.1/help/languages.json", options, Twitter::Language)
end

#privacy(options = {}) ⇒ String

Returns:

  • (String)

Raises:

See Also:

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



28
29
30
# File 'lib/twitter/rest/help.rb', line 28

def privacy(options = {})
  perform_get("/1.1/help/privacy.json", options)[:privacy]
end

#tos(options = {}) ⇒ String

Returns:

  • (String)

Raises:

See Also:

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



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

def tos(options = {})
  perform_get("/1.1/help/tos.json", options)[:tos]
end