Skip to content

borndangerous/api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

A (very much work in progress) personal statistics API.

Integrations

  • Withings

Configuration

For each service below, the variables listed need to be added as either environment variables (for a production environment e.g. Heroku) or included in a credentials.json file (for local development).

Withings
  • WITHINGS_CONSUMER_KEY
  • WITHINGS_CONSUMER_SECRET
  • WITHINGS_TOKEN
  • WITHINGS_TOKEN_SECRET
  • WITHINGS_USER_ID

Routes

/v1/health

Response

{
  "heart_pulse": [
    {
      "date": 1421600481,
      "value": 70
    }
  ],
  "weight": [
    {
      "date": 1421600481,
      "value": "163.9"
    }
  ],
  "fat_free_mass": [
    {
      "date": 1421600481,
      "value": "139.0"
    }
  ],
  "fat_ratio": [
    {
      "date": 1421600481,
      "value": "15.19"
    }
  ],
  "fat_mass_ratio": [
    {
      "date": 1421600481,
      "value": "24.89"
    }
  ],
  "height": [
    {
      "date": 1385171117,
      "value": "5.8325512"
    }
  ]
}

/v1/fitness

/v1/music

/v1/code

/v1/travel

Inspiration

License

Available for use under the MIT license: http://bryan.mit-license.org

About

A personal statistics API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%