empatica-api

Unofficial empatica node.js module to access web data

Usage no npm install needed!

<script type="module">
  import empaticaApi from 'https://cdn.skypack.dev/empatica-api';
</script>

README

empatica-api

Unofficial empatica node.js module to access web data

Warning: This module is under development, breaking changes should be expected

Install

Install with npm

$ npm i empatica-api --save

Usage

const EmpaticaApi = require('empatica-api');
const empticaApi = new EmpticaApi({
  username: 'your_empatica_email@example.com'
  password: 'your_empatica_password'
})

const { userId } = await empticaApi.authenticate()
const sessions = await empticaApi.getSessions(userId)
console.log(sessions[0]);
// { id: '578634', start_time: '1541950248', duration: '70847', device_id: 'c004bc', label: '2588', device: 'E4 2.2', status: '0', exit_code: '0' }

Check the examples directory for more useful basics or use the full documentation here.

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

License

Licensed under the MIT license.