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

Readme

Keywords

none

Package Sidebar

Install

npm i fitbark-node-client

Weekly Downloads

9

Version

1.0.5

License

ISC

Last publish

Collaborators

  • marioharper