enough_coi 0.0.6
enough_coi: ^0.0.6 copied to clipboard

unlisted

Experimental client for COI apps. [COI](https://coi-dev.org) is a server and client standard for messaging based on email.

example/enough_coi_example.dart

import 'package:enough_coi/enough_coi.dart';

void main() async {
  var client = await CoiClient.init('enough.de');
  var email = 'user@domain.com';
  var config = await client.discover(email);
  if (config != null) {
    var account = await client.tryLogin(email, config, password: 'secret');
    if (account != null) {
      var isChatMessage = true;
      var recipients = ['Lise.Meitner@domain.com'];
      var messageSent = await client.sendMessage(
          isChatMessage, 'Hello COI world!', recipients, account);
      print('message has been sent: $messageSent');
    }
  }
}
0
likes
50
pub points
0%
popularity

Publisher

enough.de

Experimental client for COI apps. [COI](https://coi-dev.org) is a server and client standard for messaging based on email.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL 2.0 (LICENSE)

Dependencies

basic_utils, enough_mail, event_bus, json_annotation, objectdb, uuid, xml

More

Packages that depend on enough_coi