ricbra / php-discogs-api

PHP 5.4 Implementation of the Discogs API
MIT License
152 stars 96 forks source link

Expose rate limiting header values #49

Closed spiritualized closed 6 years ago

spiritualized commented 6 years ago

Almost all of my requests to the discogs API time out - currently there's no way to access the responses of the rate limiting headers returned. Would it be possible to expose these?

Details here: https://www.discogs.com/developers/#page:home,header:home-rate-limiting

ricbra commented 6 years ago

If you use the history plugin you should be able to fetch the headers from the Response object. See: https://github.com/ricbra/php-discogs-api#history