fabulator / endomondo-api-old-base
Endomondo old API base.
Installs: 68
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/fabulator/endomondo-api-old-base
Requires
- php: >=5.5
- guzzlehttp/guzzle: ~6.0
- ramsey/uuid: ^3.0
This package is auto-updated.
Last update: 2020-02-11 18:22:21 UTC
README
Endomondo is not offering some official API but there is a way that allows you to put, read or delete some data through their mobile API.
You can use this project on your own responsibility. Endomondo can make changes in this API without any warnings.
This is only basic API wrap that does not have any prepared endpoints. Only thing that is possible with this packpage is to authenticate in Endomondo API and send requests.
Example
$endomondo = new \Fabulator\Endomondo\EndomondoOldAPIBase(); $response = $endomondo->requestAuthToken(ENDOMONDO_LOGIN, ENDOMONDO_PASSWORD)->getBody(); $authToken = explode('=', explode("\n", $response)[2])[1]; print_r(json_decode($endomondo->send('/mobile/api/profile/account/get', [ 'authToken' => $authToken, ])->getBody(), true));