dailymile

0.0.1 • Public • Published

dailymile

This is a simple node.js module, which wraps the dailymile.com REST API.

Installation

npm install dailymile

Usage

//// app.js
 
var dailymile = require('dailymile');
 
// Activity for a specific user
dailymile.workoutsFor('alexjh', function(err, workouts){
  console.log(workouts);
});
 
// Activity near a lat/lng
dailymile.workoutsNear('37.804364,-122.271114', function(err, workouts){
  console.log(workouts);
});
 
// Most recent twenty entries
dailymile.recent(function(err, workouts){
  console.log(workouts);
});

Deps

  • The request-json module

Tests

A very basic spec-file is provided, which does basic sanity checks on response data. To run the tests, execute npm test from the root of a checkout

More Infomation

Additional documentation about the API can be found here.

NOTE: I am not professionally affiliated with dailymile; I wrote this module because I'm a runner and I like dailymile.

Readme

Keywords

none

Package Sidebar

Install

npm i dailymile

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • alexhancock