node-runtastic

1.0.0 • Public • Published

node-runtastic

A simple NodeJS-Module to fetch activities from runtastic

Based on timoschlueter/php-runtastic

Usage

var nodeRuntastic = require('node-runtastic');

nodeRuntastic.setup('test@example.com', 'superSecret1!11').then(function (metaInfos) {
    console.log(metaInfos);
    nodeRuntastic.getActivities(10, 2015).then(function (activities) {
        console.log(activities);
    })
});

Functions

setup

  • argument 1 needs to be username
  • argument 2 needs to be password
  • returns metaInfos of user

getActivities

  • argument 1 can be month
  • argument 2 can be year
  • returns all activities (if no argument is used) or filtered activities by month / year you supplied

getActivitiesWithFormatedDate

  • needs and does the same as 'getActivities' but
  • returns activities with a better formated date

getMetaInfos

  • gets you the same metaInfos as setup

Readme

Keywords

none

Package Sidebar

Install

npm i node-runtastic

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • haidy777