Created
October 18, 2011 04:52
-
-
Save Gunio/1294634 to your computer and use it in GitHub Desktop.
GET using Requests And Authentication
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
import requests | |
r = requests.get('https://api.github.com', auth=('YOURUSERNAME', 'PASSWORD')) | |
print r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment