Methods

async static

grant(params) → Promise containing ApiResponse

creates an user invitation for a device

Parameters

Name Type Optional Description

params

Object

 

Values in params have the following properties:

Name Type Optional Description

deviceId

string

 

params

Object

 

params.groupName

string

 

params.hostName

string

 

params.email

string

 

Returns

Promise containing ApiResponse 

async static

modify(params) → Promise containing ApiResponse

modifies the user access on a device

Parameters

Name Type Optional Description

params

Object

 

Values in params have the following properties:

Name Type Optional Description

deviceId

string

 

params

Object

 

params.usedId

string

 

params.newGroup

string

 

Returns

Promise containing ApiResponse 

async static

revoke(params) → Promise containing ApiResponse

revokes a user's access from the device

Parameters

Name Type Optional Description

params

Object

 

Values in params have the following properties:

Name Type Optional Description

deviceId

string

 

params

Object

 

params.usedId

string

 

Returns

Promise containing ApiResponse