-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessToken #9
Comments
No need for the access token. You need to provide your username and password: $tuya = new TuyaCloud([
"userName" => "email@domain.com", // username/email to access to SmartLife/Tuya app
"password" => "MyPassword", // password to access to SmartLife/Tuya app
"bizType" => "smart_life", // type ('tuya' or 'smart_life')
"countryCode" => "33", // Country code (International dialing number), e.g. "33" for France or "1" for USA
"region" => "eu" // region (az=Americas, ay=Asia, eu=Europe)
]); |
Using just these information I got this error:
|
Your problem is probably different. Make sure you use the correct login information. |
This issue has been automatically closed because the requestor didn't provide any additional comment. |
Are there any news on that topic? I have the same issues and i can make sure the login data is correct. I red Tuya changed the verification method. Maybe thats the reason. |
It works for me... So it might not be that. |
For anyone drifting in here from Google, here was my finding. I had changed the countryCode and region to 1/az (for USA/Americas) as the comments in the code suggested and I got the same error as above. I changed it back to 33/eu (France/EU) and... it worked. The comment about region/country in the code was the culprit. |
Good to know! Thanks for sharing! |
Hi @Aymkdn i see this issue with country code 880 for Bangladesh and Region bd for Bangladesh. |
Hey mate! Congrats for the code!
How/where do I get the accessToken? Didn't get that. In tuya's cloud I just have access ID and access Secret. Tried to use both with no luck.
Thanks
The text was updated successfully, but these errors were encountered: