echowrap icon indicating copy to clipboard operation
echowrap copied to clipboard

RateLimit

Open germs12 opened this issue 11 years ago • 1 comments

I've been trying to find a way to determine the current rate limit while using the echowrap gem. Unfortunately I can't find any documentation or examples that show how to find it. Is this a feature echowrap offers? Thanks and great work @timcase

germs12 avatar Jan 10 '15 01:01 germs12

No, there isn't a good way to do this right now. The rate limit is returned in every api call in the response headers: http://developer.echonest.com/docs/v4. This will be something that I'll address at some point, but at the moment I'm not sure when I'll get to it. A workaround might be to do what they suggested and use NET/HTTP to perform an API call and then inspect the headers, sorry I don't have a better answer...

timcase avatar Jan 13 '15 16:01 timcase