Skip to content
Myr

Adding 'import requests' to readme code snippet. (#3700)

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

* added import requests to small demo

authored by Rakib Hasan · committed by Cory Benfield · parent 1e198f9 · Browse files · 2 files+2 added−0 removed
This commit

State

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

Diff stats

2 files+2 added−0 removed

  • other:+2 added−0 removed

2 files+2 added−0 removed

modified:docs/index.rst+1 added
15 unmodified lines
16constantly reading documentation, depression, headaches, or even death.1718Behold, the power of Requests::1920 >>> import requests21 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))22 >>> r.status_code23 20024 >>> r.headers['content-type']
131 unmodified lines
modified:README.rst+1 added
13 unmodified lines
14Behold, the power of Requests:1516.. code-block:: python1718 >>> import requests19 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))20 >>> r.status_code21 20022 >>> r.headers['content-type']
73 unmodified lines