2017 © Pedro Peláez
 

yii2-extension yii2-endomondo

Simple Endomondo Api Class for Yii2

image

mitrm/yii2-endomondo

Simple Endomondo Api Class for Yii2

  • Friday, April 28, 2017
  • by mitrm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Endomondo API FOR YII2

Endomondo is not offering oficial app but there is a way how to add/write some data by their mobile API. There not exists documentation and it is very hard to figure out which parameters can be used. Using this is only on your own risk. Endomondo can make changes in this API without any warning., (*1)

Authentication of user

You have to know users email and password. Example:, (*2)

$endomondo = new \Fabulator\Endomondo\Endomondo();
$endomondo->login(USER_EMAIL, USER_PASSWORD);
var_dump($endomondo->getUserInfo());

Get information about existed workouts

You can even export gpx files., (*3)

$workout = $endomondo->workouts->get('560851703');
$workout->saveGPX('./temp/workout.gpx');

Create workouts

You can easily create workouts. This will create a run in New Year, 35 minutes long and 10.23 km length., (*4)

$endomondo->workouts->create(\Fabulator\Endomondo\Endomondo::SPORT_RUNNING, new DateTime("2015-01-01 13:45:15"), 35 * 60, 10.23)

The Versions

28/04 2017

dev-master

9999999-dev

Simple Endomondo Api Class for Yii2

  Sources   Download

MIT

The Requires

 

yii2 endomondo