Skip to content

Raise error when API rate limit is exceeded. - #43

Closed
vedarthk wants to merge 1 commit into
intercom:masterfrom
vedarthk:master
Closed

Raise error when API rate limit is exceeded.#43
vedarthk wants to merge 1 commit into
intercom:masterfrom
vedarthk:master

Conversation

@vedarthk

Copy link
Copy Markdown

As mentioned in API documentation of Intercom:
http://doc.intercom.io/api/#rate-limiting

This will raise ApiRateLimitExceededError if Intercom sends Too
many requests (429) response.

Also, will it be helpful if we attach HTTP response to ApiRateLimitExceededError ?

As mentioned in API documentation of Intercom:
http://doc.intercom.io/api/#rate-limiting

This will raise `ApiRateLimitExceededError` if Intercom sends Too
many requests (429) response.
@jkeyes

jkeyes commented Mar 18, 2015

Copy link
Copy Markdown
Contributor

Hi @vedarthk. Thanks for this. Sorry about the outrageous delay in responding. The v1 code is no longer being worked on (master branch), the ongoing development is happening on the v2 branch (currently apiv2). The biggest omission from that version is error handling which I plan on resolving soon. I'll refer back to this PR when I get there. Thanks for contributing.

@vedarthk

Copy link
Copy Markdown
Author

@jkeyes ok!

@jkeyes

jkeyes commented Mar 28, 2015

Copy link
Copy Markdown
Contributor

@vedarthk I've added rate limiting support and followed how the intercom-ruby library did it. The code is all in the apiv2 branch. I have to perform a documentation review next, and when that is complete, I'll be pushing a release to PyPI. Let me know if you have any feedback. Thanks.

@vedarthk

Copy link
Copy Markdown
Author

@jkeyes great, will update once released.

@jkeyes

jkeyes commented Mar 29, 2015

Copy link
Copy Markdown
Contributor

@jkeyes jkeyes closed this Mar 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants