According to my initial check, some apis don't suppport apptoken as a parameter.
listDevicesByDeviceId(deviceId) { //<= no token parameter
let queryParams = { deviceId: deviceId };
return this.listDevices(queryParams);
}
listDevices(queryParams, smartAppToken) { //<= has token parameter, but it can not be used by listDeviceByDeviceid
let authToken = this.getAuthToken(smartAppToken);
return requestbuilder_1.default(authToken, 'devices', 'GET', queryParams);
}
According to my initial check, some apis don't suppport apptoken as a parameter.