tidepool-platform-client

0.55.0 • Public • Published

tidepool-platform-client

Build Status

Client-side library to interact with the Tidepool platform.

Dependencies:

Usage

Install with:

$ npm install --save tidepool-platform-client

Use with Webpack or Browserify:

var createTidepoolClient = require('tidepool-platform-client');

var tidepool = createTidepoolClient({
  host: 'https://api.tidepool.org',
  uploadApi: 'https://uploads.tidepool.org',
  dataHost: 'https://data.tidepool.org',
  log: {
    warn: function() {},
    info: function() {},
    debug: function() {}
  },
  localStore: window.localStorage,
  metricsSource: 'myApp',
  metricsVersion: '0.1.0'
});

Test

Integration tests

$ npm test

To run the integration tests you need to be running platform components locally, see the runservers script.

Readme

Keywords

none

Package Sidebar

Install

npm i tidepool-platform-client

Weekly Downloads

81

Version

0.55.0

License

BSD-2-Clause

Unpacked Size

143 kB

Total Files

18

Last publish

Collaborators

  • tidepool-robot