Module: Twitter::REST::API::Help
Constant Summary
Constants included from Utils
Utils::DEFAULT_CURSOR, Utils::URI_SUBSTRING
Instance Method Summary collapse
-
#configuration(options = {}) ⇒ Twitter::Configuration
Returns the current configuration used by Twitter.
-
#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.
Instance Method Details
#configuration(options = {}) ⇒ Twitter::Configuration
Returns the current configuration used by Twitter
18 19 20 |
# File 'lib/twitter/rest/api/help.rb', line 18 def configuration(={}) object_from_response(Twitter::Configuration, :get, "/1.1/help/configuration.json", ) end |
#languages(options = {}) ⇒ Array<Twitter::Language>
Returns the list of languages supported by Twitter
29 30 31 |
# File 'lib/twitter/rest/api/help.rb', line 29 def languages(={}) objects_from_response(Twitter::Language, :get, "/1.1/help/languages.json", ) end |
#privacy(options = {}) ⇒ String
Returns Twitter's Privacy Policy
40 41 42 |
# File 'lib/twitter/rest/api/help.rb', line 40 def privacy(={}) get("/1.1/help/privacy.json", )[:body][:privacy] end |
#tos(options = {}) ⇒ String
Returns Twitter's Terms of Service
51 52 53 |
# File 'lib/twitter/rest/api/help.rb', line 51 def tos(={}) get("/1.1/help/tos.json", )[:body][:tos] end |