getPanelUserList(devId: Object)

Requires:
@ray-js/ray≥1.5.40
import { health } from '@ray-js/ray';

const { getPanelUserList } = health;

// Promise usage
try {
  const res = await getPanelUserList({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Get panel user list

Parameters

PropertyTypeRequiredDescription
devIdstringYesDevice ID

Return Value

Type: Promise<Object↓[]>
PropertyTypeDescription
userIdstringUser ID
devIdstringDevice ID
type1 | 2 | 3 | 6Business type: 1 - blood pressure monitor; 2 - kitchen scale; 3 - body fat scale; 6 - pulse oximeter
userNamestringUsername
sex0 | 1Gender: 0 - male, 1 - female
birthdaynumberBirthdate timestamp
heightnumberHeight
heightUnit"cm" | "inch"Height unit
weightnumberWeight
weightUnit"kg" | "lb" | "st" | "jin"Weight unit
userTypenumberUser type: 1 - primary user, 2 - temporary user, others - DP-configured user
avatarstringAvatar
Extended info; weight may need to be stored at 10x scale

Valid Values

return.type
ValueDescriptionSince
1--
2--
3--
6--
return.sex
ValueDescriptionSince
0--
1--
return.heightUnit
ValueDescriptionSince
cm--
inch--
return.weightUnit
ValueDescriptionSince
kg--
lb--
st--
jin--

Examples

Basic usage

import { health } from '@ray-js/ray'

health.getPanelUserList({
  devId: 'vdevo169477319679442',
}).then((userList) => {
  console.log('User list:', userList);
}).catch((error) => {
  console.error(error);
});