Skip to content

Instantly share code, notes, and snippets.

@mosampaio
Last active August 23, 2016 14:13
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 mosampaio/9d6db38fe3eb985e212f7aa93a5ee0eb to your computer and use it in GitHub Desktop.
Save mosampaio/9d6db38fe3eb985e212f7aa93a5ee0eb to your computer and use it in GitHub Desktop.
How to consume a json Rest API with Python using requests
# 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