Merge pull request #2493 from yasoob/master

made the quickstart more reader friendly
This commit is contained in:
Cory Benfield
2015-03-15 18:39:54 +00:00
+2 -3
View File
@@ -186,10 +186,9 @@ For example, we didn't specify our content-type in the previous example::
>>> import json
>>> url = 'https://api.github.com/some/endpoint'
>>> payload = {'some': 'data'}
>>> headers = {'content-type': 'application/json'}
>>> headers = {'user-agent': 'my-app/0.0.1'}
>>> r = requests.post(url, data=json.dumps(payload), headers=headers)
>>> r = requests.get(url, headers=headers)
More complicated POST requests