Last active
August 23, 2016 14:13
-
-
Save mosampaio/9d6db38fe3eb985e212f7aa93a5ee0eb to your computer and use it in GitHub Desktop.
How to consume a json Rest API with Python using requests
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
# remember to add the dependency > pip install requests | |
import requests | |
url = 'https://api.github.com/repos/twilio/twilio-python/contributors' | |
print(requests.get(url).json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment