mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix NameError in example
This commit is contained in:
+1
-17
@@ -1,22 +1,6 @@
|
||||
Requests: The Simple (e.g. usable) HTTP Module
|
||||
==============================================
|
||||
|
||||
::
|
||||
|
||||
::::::::: :::::::::: :::::::: ::: ::: :::::::::: :::::::: ::::::::::: ::::::::
|
||||
:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:
|
||||
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
|
||||
+#++:++#: +#++:++# +#+ +:+ +#+ +:+ +#++:++# +#++:++#++ +#+ +#++:++#++
|
||||
+#+ +#+ +#+ +#+ # +#+ +#+ +#+ +#+ +#+ +#+ +#+
|
||||
#+# #+# #+# #+# +#+ #+# #+# #+# #+# #+# #+# #+# #+#
|
||||
### ### ########## ###### ### ######## ########## ######## ### ########
|
||||
|
||||
|
||||
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
Most existing Python modules for dealing HTTP requests are insane. I have to look up *everything* that I want to do. Most of my worst Python experiences are a result of the various built-in HTTP libraries (yes, even worse than Logging).
|
||||
|
||||
But this one's different. This one's going to be awesome. And simple.
|
||||
@@ -52,7 +36,7 @@ HTTPS? Basic Authentication? ::
|
||||
Uh oh, we're not authorized! Let's add authentication. ::
|
||||
|
||||
>>> conv_auth = requests.AuthObject('requeststest', 'requeststest')
|
||||
>>> r = requests.get('https://convore.com/api/account/verify.json', conv_auth=auth)
|
||||
>>> r = requests.get('https://convore.com/api/account/verify.json', auth=conv_auth)
|
||||
|
||||
>>> r.status_code
|
||||
200
|
||||
|
||||
Reference in New Issue
Block a user