ihealth-cloud-api
v0.0.2
Published
API parser for iHealth cloud
Downloads
19
Readme
iHealth cloud api
API parser for iHealth cloud.
This package allows access to iHealth cloud API. Please note that exists a developer site for applications API. In this moment only is supported the Weight API.
Installation
OS X & Linux:
npm install ihealth-cloud-api --saveUsage example
const { getLogin, getWeight, getFat, parser } = require("ihealth-cloud-api");
const email = "[email protected]";
const password = "123456";
getLogin(email, password)
.then(getFat("01/04/2018", "02/04/2018"))
.then(res => console.log(parser.fat(res.data)))
.then(getWeight("01/04/2018", "02/04/2018"))
.then(res => console.log(parser.weight(res.data)))
.catch(error => console.log(error));Development setup
Clone the repo and install with NPM. Please make unit tests when is necessary. To run the tests:
npm testRelease History
- 0.0.1
- ADD: Weight API
- Create the Repository
Contributing
- Fork it (https://gitlab.com/joyarzun/ihealth-cloud-api)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
