approveDevice

approveDevice( deviceId : string ) : void

The approveDevice operation attempts to approve the device with the supplied device ID in connection with DME's two-step initial authentication scheme. This scheme is described in the Security part of the Authentication section - see Authentication.

Parameters

Name

Description

Required

deviceId

Type: string

The ID of the device to which the operation applies. The ID of a device can be found on its information page (see Information) or be returned using getDevices.

Yes

Return value

None.

Throws

MyDMEException if the device was not found or could not be approved, for instance because the device does not belong to the current user. See MyDMEException.

Next topic

deleteDevice