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, Utils::URI_SUBSTRING

Instance Method Summary collapse

Methods included from Utils

flat_pmap, pmap

Instance Method Details

#configuration(options = {}) ⇒ Twitter::Configuration

Returns the current configuration used by Twitter

Returns:

Raises:

See Also:

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



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

def configuration(options = {})
  perform_get_with_object('/1.1/help/configuration.json', options, Twitter::Configuration)
end

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

Returns the list of languages supported by Twitter

Returns:

Raises:

See Also:

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



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

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



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

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



51
52
53
# File 'lib/twitter/rest/help.rb', line 51

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