Module: Twitter::REST::Help
Overview
Methods for accessing Twitter help resources
Constant Summary
Constants included from Utils
Instance Method Summary collapse
-
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter.
-
#privacy(options = {}) ⇒ String
Returns Twitter’s Privacy Policy.
-
#tos(options = {}) ⇒ String
Returns Twitter’s Terms of Service.
Methods included from Utils
Instance Method Details
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter
21 22 23 |
# File 'lib/twitter/rest/help.rb', line 21 def languages( = {}) perform_get_with_objects("/1.1/help/languages.json", , Language) end |
#privacy(options = {}) ⇒ String
Returns Twitter’s Privacy Policy
35 36 37 |
# File 'lib/twitter/rest/help.rb', line 35 def privacy( = {}) perform_get("/1.1/help/privacy.json", )[:privacy] end |
#tos(options = {}) ⇒ String
Returns Twitter’s Terms of Service
49 50 51 |
# File 'lib/twitter/rest/help.rb', line 49 def tos( = {}) perform_get("/1.1/help/tos.json", )[:tos] end |