Endomondo API for nodejs.
$ npm install -S endomondo
const endomondo = require('endomondo');
- using email and password
const endo = require('endomondo');
const endoSession = endo.authenticate({
email: 'email@domain.com',
password: 'password'
}, (err, user) => {
if(err) return console.log(err);
console.log(user); // user information
//now you can use data endpoints, i.e.: endoSession.feed()
//more below
});
When session is established properly, you can use data edpoints.
endoSession.feed((err, feed) => {
if(err) return console.log(err);
console.log(feed); // homepage's activity feed
});
endoSession.friends((err, friends) => {
if(err) return console.log(err);
console.log(friends); // friends list
});
$ npm test