mi_iot_token 0.0.1 mi_iot_token: ^0.0.1 copied to clipboard
A Flutter package for xiaomi iot token extract.
A xiaomi iot token extractor.
Features #
You can login to your mi iot account by your id & password, and get device list.
Getting started #
Add dependency #
dependencies:
mi_iot_token: ^0.0.1
Usage #
void main() async {
var auth = Auth();
var api = Api("cn"); // your country code
var user = await auth.login(
"your id or name", "password"); // your id or name and password
var data = await api.getDeviceList(
user["userId"], user["ssecurity"], user["token"], "cn");
print(data);
}
License #
Released under the MIT License.