python-intercom
python-intercom copied to clipboard
throttle api requests by default
trafficstars
it would be helpful if all intercom api requests were throttled automatically to avoid exceeding limits
No immediate plans on adding this Arjun. The current rate limit details are stored in the version-3 client (see rate_limit_details).
@arjunbanker Have a look in the auto-throttle branch. It's a simple solution that sleeps until the rate limit is reset. To enable the throttling a client has to be created with a parameter: Client(personal_access_token="xxx", throttle=True).