From: Josh Roesslein Date: Thu, 24 Sep 2009 19:46:06 +0000 (-0500) Subject: Expose HTTPResponse object as API.last_response X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ef6f3005a374e292efd0fb519d91bbcb7039df0e;p=tweepy.git Expose HTTPResponse object as API.last_response --- diff --git a/CHANGES b/CHANGES index 9eb8de0..f43a02a 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,7 @@ during upgrade will be listed here. + Added new parameters for statuses/update; lat & long + friends_ids() & followers_ids() parameter changed page -> cursor + search() added "locale" parameter + + expose last httplib.HTTPResponse object received as API.last_response + OAuthHandler + Added set_request_token() method + Added support for "sign in with twitter". diff --git a/tweepy/binder.py b/tweepy/binder.py index ef48d09..ac04ec3 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -106,6 +106,7 @@ def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False, # Get response resp = conn.getresponse() + api.last_response = resp api.logger.debug('Received response...') api.logger.debug(' headers: %s' % resp.getheaders()) api.logger.debug(' status code: %s' % resp.status)