Skip to content
Myr

Merge pull request #2493 from yasoob/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

made the quickstart more reader friendly

authored by Cory Benfield · committed by Cory Benfield · parents 8c6d82a, 3711e04 · Browse files · 1 file+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:docs/user/quickstart.rst+2 added-3 removed
184 unmodified lines
185For example, we didn't specify our content-type in the previous example::186187 >>> import json188 >>> url = 'https://api.github.com/some/endpoint'189 >>> payload = {'some': 'data'}190 >>> headers = {'content-type': 'application/json'}189 >>> headers = {'user-agent': 'my-app/0.0.1'}190192 >>> r = requests.post(url, data=json.dumps(payload), headers=headers)191 >>> r = requests.get(url, headers=headers)192193194More complicated POST requests195------------------------------
268 unmodified lines