endomondo
v1.0.2
Published
NodeJS API for Endomondo service
Downloads
5
Readme
endomondo
Endomondo API for nodejs.
Get started
$ npm i -s endomondo
const endomondo = require('endomondo');
Authenticate
- using email and password
const endo = require('endomondo');
const endoSession = endo.authenticate({
email: '[email protected]',
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
});
News feed
endoSession.feed((err, feed) => {
if(err) return console.log(err);
console.log(feed); // homepage's activity feed
});
Friends list
endoSession.friends((err, friends) => {
if(err) return console.log(err);
console.log(friends); // friends list
});