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

A client library to comminucate and exchange data with SO Platform.

example/so_example.dart

import 'package:so/so.dart';

Future<void> main() async {
  Client client = Client("emqim12.engravsystems.com", "emqimtest");
  String status = await client.login("username", "password");
  if (status == "") {
    print("Logged in successfully");
    Data d = await client.file("ENGRAV Air - Operation Manual");
    if (d.error == '') {
      print("Mime type of the file retrieved is: ${d.contentType}");
    } else {
      print("Error retrieving file: ${d.error}");
    }
  } else {
    print("Not logged in. Error: $status");
  }
  await client.logout();
}
1
likes
150
points
524
downloads

Publisher

verified publisherstoredobject.com

Weekly Downloads

A client library to comminucate and exchange data with SO Platform.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

http

More

Packages that depend on so