Merge pull request #149 from myusuf3/master
if you dont pass in header you asked for explicitly all are returned.
This commit is contained in:
commit
b870d44f28
1 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ class TwythonRateLimitError(TwythonError):
|
||||||
|
|
||||||
class Twython(object):
|
class Twython(object):
|
||||||
def __init__(self, app_key=None, app_secret=None, oauth_token=None, oauth_token_secret=None, \
|
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).
|
"""Instantiates an instance of Twython. Takes optional parameters for authentication and such (see below).
|
||||||
|
|
||||||
:param app_key: (optional) Your applications key
|
:param app_key: (optional) Your applications key
|
||||||
|
|
@ -262,7 +262,7 @@ class Twython(object):
|
||||||
raise TwythonError('This function must be called after an API call. It delivers header information.')
|
raise TwythonError('This function must be called after an API call. It delivers header information.')
|
||||||
if header in self._last_call['headers']:
|
if header in self._last_call['headers']:
|
||||||
return self._last_call['headers'][header]
|
return self._last_call['headers'][header]
|
||||||
return None
|
return self._last_call
|
||||||
|
|
||||||
def get_authentication_tokens(self):
|
def get_authentication_tokens(self):
|
||||||
"""Returns an authorization URL for a user to hit.
|
"""Returns an authorization URL for a user to hit.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue