Skip to content
Myr

made the quickstart more reader friendly. Closes #2418

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

authored by M.Yasoob Ullah Khalid ☺ · committed by M.Yasoob Ullah Khalid ☺ · parent fa338da · 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': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36'}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