getFitOnlinePasswordList()

Requires:
@ray-js/lock-sdk≥1.2.0

Description

Get the current accessory's online password details list (retaining original fields such as opModeType/effective period/phone number/lock name).

Parameters

None

Return Value

Type: Promise<FitOnlinePasswordItem[]>
Online password detail array
FitOnlinePasswordItem
PropertyTypeDescription
idnumberCloud unlock method record ID (from unlockBindingId)
pwdIdnumberPassword ID
snnumberPassword index on the lock
gmtCreatenumberCreation time
opModeTypenumberUnlock method type: 1 time-limited temporary / 2 permanent
opModeSubTypenumberPassword subtype: 0 time-limited / 1 one-time
namestringPassword name
userNamestringPassword owner username
mobilestringSMS recipient phone number
hijackbooleanWhether a duress password
operatenumberCurrent operation status: 124 creating / 125 deleting / 126 updating
effectiveTimenumberEffective time (seconds)
invalidTimenumberExpiry time (seconds)
devNameListstring[]List of unlockable lock names
Cycle details

Referenced Types

interfaceRawFitOpenModeScheduleItem
PropertyTypeDescription
allDayboolean
effectiveTimenumber
invalidTimenumber
timeZoneIdstring
workingDaynumber

Examples

import { getFitOnlinePasswordList } from '@ray-js/lock-sdk';
const online = await getFitOnlinePasswordList();