Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Print headers #3

Open
chamalis opened this issue Apr 15, 2015 · 2 comments
Open

Print headers #3

chamalis opened this issue Apr 15, 2015 · 2 comments

Comments

@chamalis
Copy link

Hello,

How can I print the headers in order to find the info mentioned here: http://developer.klout.com/blog/read/Rate_Limits_Insights ?

Thanks,
Stelios

@chamalis
Copy link
Author

You need to add

self.qps = handle.info().getheader('X-APIKey-QPS-Current')
self.quota = handle.info().getheader('X-APIKey-Quota-Current')

inside _handle_response after
handle = urllib_request.urlopen(req)

@chamalis
Copy link
Author

And return those values

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant