iamstuartwilson / strava

PHP Class for the Strava API (v3)
MIT License
120 stars 26 forks source link

header data? #15

Closed clin407 closed 8 years ago

clin407 commented 8 years ago

Is it possible to get header data with your package for all requests? I'm trying to make sure I check headers to get X-Ratelimit-Limit and X-Ratelimit-Usage listed here: https://strava.github.io/api/#rate-limiting so I know how to adjust on my end.

mjaschen commented 8 years ago

Hi,

access to header data is now available in version 1.2.0.

Just use the getResponseHeaders() or getResponseHeader($header) methods.

Marcus