Skip to content

adasq/endomondo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

endomondo

Endomondo API for nodejs.

Get started

$ npm install -S endomondo
const endomondo = require('endomondo');

Authenticate

  • 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

});

API usage

When session is established properly, you can use data edpoints.

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
});

Test

$ npm test