fabulator/endomondo-api

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.1.2) of this package.

Endomondo API.

v1.1.2 2018-09-13 10:33 UTC

This package is auto-updated.

Last update: 2020-09-11 19:25:14 UTC


README

This unofficial Endomondo API, which they are using in web app, allows you to read informations about workouts and update them. Creating new workouts is not possible with this API and you have to use endomondo-api-old project.

Authorize

Authorization is simple, just log in with Endomondo login and password. For every post or put request, you have to have csfr token. It is generated automatic by the library.

$endomondo = new \Fabulator\Endomondo\EndomondoApi();
$endomondo->login(ENDOMONDO_LOGIN, ENDOMONDO_PASSWORD);

$workout = $endomondo->getWorkout('775131509');
echo $workout->toString();

Editing workouts

$workout = $endomondo->getWorkout('775131509');

$workout
    ->setDistance(5.3)
    ->setNotes('My beautiful note');

$endomondo->editWorkout($workout);

Creating workouts

You have to use fabulator/endomondo-api-old package.