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

outdated

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
0
points
49
downloads

Publisher

verified publisherkujohnln.com

Weekly Downloads

A Flutter package for xiaomi iot token extract.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

convert, crypto, http

More

Packages that depend on mi_iot_token