tidepool-platform-client

0.57.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.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i tidepool-platform-client

    Weekly Downloads

    300

    Version

    0.57.0

    License

    BSD-2-Clause

    Unpacked Size

    2.35 MB

    Total Files

    19

    Last publish

    Collaborators

    • tidepool-robot