Skip to content

Some apis on smartthings-node do not support apptoken parameter, #4

Description

@Kwanghyuk-Kim

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions