mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 14:50:16 +00:00
Adding 'import requests' to readme code snippet. (#3700)
* added import requests to small demo
This commit is contained in:
committed by
Cory Benfield
parent
1e198f9115
commit
7e138f945e
@@ -15,6 +15,7 @@ Behold, the power of Requests:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> import requests
|
||||
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
|
||||
>>> r.status_code
|
||||
200
|
||||
|
||||
@@ -17,6 +17,7 @@ constantly reading documentation, depression, headaches, or even death.
|
||||
|
||||
Behold, the power of Requests::
|
||||
|
||||
>>> import requests
|
||||
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
|
||||
>>> r.status_code
|
||||
200
|
||||
|
||||
Reference in New Issue
Block a user