mi_iot_token 0.2.0 copy "mi_iot_token: ^0.2.0" to clipboard
mi_iot_token: ^0.2.0 copied to clipboard

A Flutter package for xiaomi iot token extract.

example/example.dart

import 'package:mi_iot_token/mi_iot_token.dart';

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);
}
2
likes
130
points
49
downloads

Publisher

verified publisherkujohnln.com

Weekly Downloads

A Flutter package for xiaomi iot token extract.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

convert, crypto, http, universal_io

More

Packages that depend on mi_iot_token