From 68ac67e85db94e451116e0924b1d1555089424cb Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Mon, 21 Dec 2009 03:04:46 -0500 Subject: [PATCH] Documented the new proxy use/authentication methods (see the setup() method) --- twython/core.py | 9 +++++++++ twython3k/core.py | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/twython/core.py b/twython/core.py index b88d637..b56b0e4 100644 --- a/twython/core.py +++ b/twython/core.py @@ -61,6 +61,15 @@ class setup: username - Your Twitter username, if you want Basic (HTTP) Authentication. password - Password for your twitter account, if you want Basic (HTTP) Authentication. headers - User agent header. + proxy - An object detailing information, in case proxy use/authentication is required. Object passed should be something like... + + proxyobj = { + "username": "fjnfsjdnfjd", + "password": "fjnfjsjdfnjd", + "host": "http://fjanfjasnfjjfnajsdfasd.com", + "port": 87 + } + version (number) - Twitter supports a "versioned" API as of Oct. 16th, 2009 - this defaults to 1, but can be overridden on a class and function-based basis. ** Note: versioning is not currently used by search.twitter functions; when Twitter moves their junk, it'll be supported. diff --git a/twython3k/core.py b/twython3k/core.py index 5c1653e..677afc9 100644 --- a/twython3k/core.py +++ b/twython3k/core.py @@ -60,6 +60,15 @@ class setup: Parameters: username - Your Twitter username, if you want Basic (HTTP) Authentication. password - Password for your twitter account, if you want Basic (HTTP) Authentication. + proxy - An object detailing information, in case proxy use/authentication is required. Object passed should be something like... + + proxyobj = { + "username": "fjnfsjdnfjd", + "password": "fjnfjsjdfnjd", + "host": "http://fjanfjasnfjjfnajsdfasd.com", + "port": 87 + } + headers - User agent header. version (number) - Twitter supports a "versioned" API as of Oct. 16th, 2009 - this defaults to 1, but can be overridden on a class and function-based basis.