Download the PHP package inhaleexhale/healthgraphapi without Composer
On this page you can find all versions of the php package inhaleexhale/healthgraphapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inhaleexhale/healthgraphapi
More information about inhaleexhale/healthgraphapi
Files in inhaleexhale/healthgraphapi
Package healthgraphapi
Short Description PHP implementation of the HealthGraph API based on the StravaAPI repo from iamstuartwilson
License MIT
Informations about the package healthgraphapi
StravaApi
Simple PHP class to interact with Runkeeper's HealthGraph API. Forked from Iamstuartwilson/strava.
Overview
The class simply houses methods to help send data to and recieve data from the API.
Please read the API documentation to see what endpoints are available.
There is currently no file upload support at this time
Installation
With Composer
Or
Add InhaleExhale/runkeeper-php
to your composer.json
:
Manually
Copy HealthGraphApi.php
to your project and require it in your application as described in the next section.
Getting Started
Include the class and instantiate with your client_id and client_secret from your registered app:
You will then need to authenticate your strava account by requesting an access code [1]. You can generate a URL for authentication using the following method:
When a code is returned you must then exchange it for an access token for the authenticated user:
Before making any requests you must set the access token as returned from your token exchange or via your own private token from Strava:
Example Requests
Get the most recent 100 KOMs from any athlete
Post a new activity [2]
Update a athlete's weight [2]
Delete an activity [2]
Notes
1. The account you register your app will give you an access token, so you can skip this step if you're just testing endpoints/methods.
2. These actions will need the scope set to write when authenticating a user
Historic Releases
Previous version 1.2.2
Updates include:
- Possibility to access the HTTP response headers
- PHP 7 compatibility
- Basic PHPUnit test cases for Auth URL generation