Created
November 17, 2014 20:11
-
-
Save randyzwitch/109e6fc784294cdfaa99 to your computer and use it in GitHub Desktop.
Redundant Julia code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
# | |
# Help section Functions for Twitter API | |
# | |
############################################################# | |
function get_help_configuration(; options=Dict{String, String}()) | |
r = get_oauth("https://api.twitter.com/1.1/help/configuration.json", options) | |
return r.status == 200 ? JSON.parse(r.data) : r | |
end | |
function get_help_languages(; options=Dict{String, String}()) | |
r = get_oauth("https://api.twitter.com/1.1/help/languages.json", options) | |
return r.status == 200 ? JSON.parse(r.data) : r | |
end | |
function get_help_privacy(; options=Dict{String, String}()) | |
r = get_oauth("https://api.twitter.com/1.1/help/privacy.json", options) | |
return r.status == 200 ? JSON.parse(r.data) : r | |
end | |
function get_help_tos(; options=Dict{String, String}()) | |
r = get_oauth("https://api.twitter.com/1.1/help/tos.json", options) | |
return r.status == 200 ? JSON.parse(r.data) : r | |
end | |
function get_application_rate_limit_status(; options=Dict{String, String}()) | |
r = get_oauth("https://api.twitter.com/1.1/application/rate_limit_status.json", options) | |
return r.status == 200 ? JSON.parse(r.data) : r | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment