-
Notifications
You must be signed in to change notification settings - Fork 13
I need help #9
Comments
Please include more details about where you're getting stuck. |
@codetheweb ok so const api = new OpenAPI({key: '10101010', secret: '1010101010', schema: '10101010'}); (async () => { const uid = await api.putUser({ console.log(uid); const token = await api.getDeviceToken({uid, timezone: 'America/Chicago'}); console.log(token); console.log(await api.getDevicesByToken('EkjQjlbo')); |
actually this is my code (async () => { const uid = await api.putUser({ console.log(uid); const token = await api.getDeviceToken({uid, timezone: 'America/New-York'}); console.log(token); console.log(await api.getDevicesByToken('EkjQjlbo')); |
If you're getting |
is that how i would do the timezone? |
@codetheweb Do i put the devices id or the projects id for schema? |
I need to start asking these questions in one comment but for username and password i use the email and password for https://iot.tuya.com/. |
@codetheweb i think i fixed that error but now its telling me permission denied. |
You should use the user account you sign into the app with for credentials here instead of the credentials used to sign into iot.tuya.com. |
o ok |
Can someone help me with the setup.
The text was updated successfully, but these errors were encountered: