米家客户端 API 鉴权信息获取
1
wget https://gist.githubusercontent.com/SumiMakito/47b6ddd83695039f2e18feb2e7b40b37/raw/7d850839635222ef2ab48e408fd8472a27779d11/xiaomi_service_login.py && python3 xiaomi_service_login.py

返回示例

1
2
3
4
5
6
7
8
9
➜  ~ python3 xiaomi_service_login.py
Mi Username: 1886*******
Mi Password: ******
Logging in...

ssecurity: +OK......g==
userId: 22......51
Fetching cookie...
serviceToken: KX.....HQ
Author: Akechi Satori
Link: https://satori.moe/mijia-api-authorize-info/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.