Last active
June 7, 2017 19:03
-
-
Save sandeepm96/31fed59107f1808ad55ae7291c2acab5 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
import json | |
import requests | |
response = requests.post('https://api.github.com/user/repos', | |
data=json.dumps({'name': 'foo'}), auth=('user', 'pass')) | |
assert response.status_code == 201 | |
print response.json() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment