Client-side library to interact with the Tidepool platform.
Dependencies:
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'
});
$ npm test
To run the integration tests you need to be running platform components locally, see the runservers script.