Mehdi
unread,Apr 11, 2012, 9:54:24 AM4/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Meetup API
Hi,
I was testing the rate-limiting behaviour last night to make sure that
I mark rate-limited tokens as such to avoid making unnecessary API
calls that are sure to fail (and while testing, I saw that we're now
allowed 800 calls / hour, which should be far more than enough anyway
- but that's beside the point).
The doc indicates that the X-RateLimit-Reset HTTP header contains the
time when the rate limit gets reset. And it's indeed there on every
response... except on the 400 Bad Request response you get when you
get rate limited, which is precisely where you'd actually want to know
when you can start making requests again.
The doc suggests that I can check the status of an account by calling
the /members/?relation=self method but that doesn't work either when
you're rate-limited (I just get a 400 response).
So at this point I can mark a token as being rate-limited but there
doesn't seem to be any way to know when the restriction will get
lifted. Is there any workaround I missed?
Cheers,
Mehdi