Created
November 21, 2014 21:09
-
-
Save austinkelleher/0de89478233b5b88d57a to your computer and use it in GitHub Desktop.
api_request.py
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 urllib2 | |
req = urllib2.Request('http://localhost:8000/account') | |
req.add_header("X-Auth-Token", "") | |
resp = urllib2.urlopen(req) | |
content = resp.read() | |
print content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment