tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
130 stars 49 forks source link

`sign invalid` problem for device logs query. #73

Open wpritom opened 1 year ago

wpritom commented 1 year ago

The following api request works fine:

res = openapi.get('/v1.0/iot-03/devices/{}/status'.format(DEVICE_ID))

However, when I request for device logs it returns sign invalid.

res = openapi.get("/v1.0/iot-03/devices/{}/logs?end_time=9999999999999&start_time=0&event_types=1".format(DEVICE_ID))

This is confusing. How to fix this problem?