Add 'secure' parameter to OAuthHandler constructor.
authorFerenc Szalai <szferi@wsbricks.com>
Thu, 31 Dec 2009 17:52:29 +0000 (11:52 -0600)
committerJoshua <jroesslein@gmail.com>
Thu, 31 Dec 2009 17:52:29 +0000 (11:52 -0600)
commit346a03f5650fc0ee960218e178ef6a0cee74e620
tree0b347e34f752f99895a3145abaf57d051251fbb3
parent2ce80f20ccaa10d9692c3427ad39ee660615a95d
Add 'secure' parameter to OAuthHandler constructor.

When 'secure' is True, HTTPS will be used for OAuth requests being sent to Twitter.
This only applies to the get token, authorize, and get access token requests. API
requests will not use HTTPS unless the API object also has 'secure' set to True in
its constructor.

Example:
auth = OAuthHandler(token,secret,secure=True)  # use HTTPS for OAuth setup

api = API(auth)  #  will NOT use HTTPS
api_https = API(auth, secure=True)  # will use HTTPS for API requests.

Signed-off-by: Joshua <jroesslein@gmail.com>
CHANGELOG
CONTRIBUTORS
tweepy/auth.py