Commit ef6f3005 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Expose HTTPResponse object as API.last_response

parent 2bcf7d4c
......@@ -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".
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment