From ef6f3005a374e292efd0fb519d91bbcb7039df0e Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Thu, 24 Sep 2009 14:46:06 -0500 Subject: [PATCH] Expose HTTPResponse object as API.last_response --- CHANGES | 1 + tweepy/binder.py | 1 + 2 files changed, 2 insertions(+) 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) -- 2.25.1