Skip to content

Commit

Permalink
Merge pull request psf#2493 from yasoob/master
Browse files Browse the repository at this point in the history
made the quickstart more reader friendly
  • Loading branch information
Lukasa committed Mar 15, 2015
2 parents 8c6d82a + 3711e04 commit cd3f7eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/user/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd3f7eb

Please sign in to comment.