All notable changes to iamstuartwilson/strava
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Support for Strava's new oAuth2 flow (short-lived access tokens, refresh tokens).
- Example file which demonstrates how the oAuth2 flow works.
- Unified Markdown style in README.
- Possibility to use absolute URL for an endpoint to work with new webhook functionality.
- MIT LICENSE file added to project root
CURLOPT_FOLLOWLOCATION
is no longer set totrue
-
It's now possible to access the HTTP response headers with two added methods:
getResponseHeaders()
getResponseHeader($header)
The first one returns all HTTP headers as an array while the second returns the header value for the given header name (and throws an exception if the header name does not exist).
The existing public API of the StravaAPI class is unchanged, only two new public methods were introduced.
- The exception for a failed API request could not be thrown because of a missing namespace declaration.