Skip to content

Instantly share code, notes, and snippets.

@vnegi10
Last active August 6, 2023 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vnegi10/dc627cad7d7085826a9c9995b20d727a to your computer and use it in GitHub Desktop.
Save vnegi10/dc627cad7d7085826a9c9995b20d727a to your computer and use it in GitHub Desktop.
function get_request(endpoint_name::String)
url = URL
headers = ["Content-Type" => "application/json"]
response = HTTP.request(
"GET",
join([URL, endpoint_name]),
headers,
verbose = 0,
retries = 2
)
response_dict = String(response.body) |> JSON.parse
return response_dict
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment