Skip to content
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

获取不到usertoken是怎么回事? #21

Open
smc326 opened this issue Nov 9, 2023 · 0 comments
Open

获取不到usertoken是怎么回事? #21

smc326 opened this issue Nov 9, 2023 · 0 comments

Comments

@smc326
Copy link

smc326 commented Nov 9, 2023

HA错误提示login fail: not exist,对应的是获取不到usertoken。
已通过以下命令,授权第三方应用,并可以看到usertoken,不知道啥原因?
import time import hashlib tick = int(time.time()) appkey = " " callbackurl = "http://localhost" apptoken = " " sdata = "appkey=" + appkey sdata += "&auth_callback=" + callbackurl sdata += "&time=" + str(tick) sdata += "&apptoken=" + apptoken sign = hashlib.md5(sdata.encode(encoding='UTF-8')).hexdigest() url = "https://api.ilifesmart.com/app/auth.authorize?id=001&" url += "&appkey=" + appkey url += "&time=" + str(tick) url += "&auth_callback=" + callbackurl url += "&sign=" + sign url += "&lang=zh" print(url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant