Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clinical-meteor/ihealth-cloud-api
iHealth Cloud API
https://github.com/clinical-meteor/ihealth-cloud-api
Last synced: about 2 months ago
JSON representation
iHealth Cloud API
- Host: GitHub
- URL: https://github.com/clinical-meteor/ihealth-cloud-api
- Owner: clinical-meteor
- Created: 2018-07-13T00:23:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T00:23:56.000Z (over 6 years ago)
- Last Synced: 2024-10-29T21:06:26.910Z (3 months ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# iHealth cloud api
> API parser for iHealth cloud.
This package allows access to iHealth cloud API. Please note that exists a [developer site](http://developer.ihealthlabs.com/) for applications API. In this moment only is supported the Weight API.
## Installation
OS X & Linux:
```sh
npm install ihealth-cloud-api --save
```## Usage example
```js
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:```sh
npm test
```## Release History
* 0.0.1
* ADD: Weight API
* Create the Repository## Contributing
1. Fork it (https://gitlab.com/joyarzun/ihealth-cloud-api)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request