From dbf2a461b84e62b9736bcb0fbeed3ad4edcc532c Mon Sep 17 00:00:00 2001 From: Mahdi Yusuf Date: Tue, 5 Feb 2013 16:18:56 -0500 Subject: [PATCH 1/2] Update twython/twython.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit making it so that when you don't pass in header you get all of them back.  --- twython/twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/twython.py b/twython/twython.py index 49c2f65..372d259 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -259,7 +259,7 @@ class Twython(object): raise TwythonError('This function must be called after an API call. It delivers header information.') if header in self._last_call['headers']: return self._last_call['headers'][header] - return None + return self._last_call def get_authentication_tokens(self): """Returns an authorization URL for a user to hit. From b0f5af37d5a813c2e1740160a9a4643e3b146531 Mon Sep 17 00:00:00 2001 From: Mahdi Yusuf Date: Tue, 5 Feb 2013 16:53:47 -0500 Subject: [PATCH 2/2] Update twython/twython.py updating default version of api as well. come on playa. --- twython/twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/twython.py b/twython/twython.py index 372d259..9a81ce4 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -82,7 +82,7 @@ class TwythonRateLimitError(TwythonError): class Twython(object): def __init__(self, app_key=None, app_secret=None, oauth_token=None, oauth_token_secret=None, \ - headers=None, callback_url=None, twitter_token=None, twitter_secret=None, proxies=None, version='1'): + headers=None, callback_url=None, twitter_token=None, twitter_secret=None, proxies=None, version='1.1'): """Instantiates an instance of Twython. Takes optional parameters for authentication and such (see below). :param app_key: (optional) Your applications key