Module: Twitter::REST::Help

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

Overview

Methods for accessing Twitter help resources

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

Examples:

client.languages

Raises:

See Also:



21
22
23
# File 'lib/twitter/rest/help.rb', line 21

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

#privacy(options = {}) ⇒ String

Returns Twitter’s Privacy Policy

Examples:

client.privacy

Raises:

See Also:



35
36
37
# File 'lib/twitter/rest/help.rb', line 35

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

#tos(options = {}) ⇒ String

Returns Twitter’s Terms of Service

Examples:

client.tos

Raises:

See Also:



49
50
51
# File 'lib/twitter/rest/help.rb', line 49

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