Skip to content

Instantly share code, notes, and snippets.

@MagicMagnate
Last active April 11, 2020 16:04
Show Gist options
  • Save MagicMagnate/a0a8459da7f728d59337b5bee2cc44c7 to your computer and use it in GitHub Desktop.
Save MagicMagnate/a0a8459da7f728d59337b5bee2cc44c7 to your computer and use it in GitHub Desktop.
@app.route('/general')
def general_stats():
# call API and convert response into Python dictionary
url = f'https://corona-virus-stats.herokuapp.com/api/v1/cases/general-stats'
response = requests.get(url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment