Emfit QS API client
Unofficial Emfit QS API client for node.js
Usage
Install
npm install emfit-qs
Quick example
const QS = var token = 'MY_ACCESS_TOKEN'var qs = token qs
Features
Supported APis (in alphabetical order):
latest
Get latest sleep periods' data from a device.
qs
login
Exchange username and password to a token (expires in 7 days). You can also log in to qs.emfit.com and check the ´remember_token´ parameter passed to API calls (e.g. with developer tools of your browser).
The data
parameter passed to callback function includes objects user
,
device_settings
and remember_token
.
qs
presence
Get specific sleep period's data. You can set apiVersion
to 1
, 2
or 4
.
qs.pesence(deviceId)
is the same as qs.latest(deviceId)
qs
status
Get status of a specific device. Possible statuses: "present", "absent", "network-error", "sensor-error" or "undeployed".
qsstatusdeviceId
statuses
Get status of all devices your account has access to.
qs
user
Get your account information.
qs