-
Notifications
You must be signed in to change notification settings - Fork 65
Description
1- Is there away to deal with Freshdesk API call rate limit?
2-Is there away to get the "requester" information by default when calling list_tickets or filter_tickets rather than call get_ticket(ticket.id, "requester")
3-How can I have access to the underlying response header?
After calling filter_tickets() I need to loop on the list of returned tickets and call requesterInfo = fd_api.tickets.get_ticket(ticket.id, "requester") in order to get the requester information. this more often than not results in the following error:
freshdesk.v2.errors.FreshdeskRateLimited: 429 Rate Limit Exceeded: API rate-limit has been reached until 9 seconds. See http://freshdesk.com/api#ratelimit
I have added a delay between calls but it does not always work. the only way to make sure the rate limit is not hit is to reduce the rate to 20 or fewer calls per minute which is too long for my case. the rate and the remaining calls are returned with every response header but I don't know how to read it in the code. This library does not seem to expose this number either.