fitbark-node-client

1.0.5 • Public • Published

Codeship npm

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');
});

Dependencies (3)

Dev Dependencies (17)

Package Sidebar

Install

npm i fitbark-node-client

Weekly Downloads

1

Version

1.0.5

License

ISC

Last publish

Collaborators

  • marioharper