fitbark-node-client
v1.0.5
Published
Node client for FitBark web API
Downloads
11
Readme
fitbark-node-client
Node client for FitBark Web API
Installation
This library is distributed on npm
. In order to add it as a dependency,
run the following command:
$ npm install fitbark-node-client --save
Usage
Example: Get a dog by its name
const FitBark = require('fitbark-node-client');
const fitBark = new FitBark('your-access-token');
fitBark.getDog('Fido').then((dog) => {
if (dog) {
console.log(`retrieved ${dog.name}`);
}
}).catch((err) => {
console.log('there was an error');
});