Last active
April 11, 2020 16:04
-
-
Save MagicMagnate/a0a8459da7f728d59337b5bee2cc44c7 to your computer and use it in GitHub Desktop.
This file contains 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
@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