enough_coi 0.0.3 copy "enough_coi: ^0.0.3" to clipboard
enough_coi: ^0.0.3 copied to clipboard

unlistedoutdated

Experimental client for COI apps.

Experimental COI client for Dart developers.

Available under the commercial friendly MPL Mozilla Public License 2.0.

Usage #

A simple usage example:

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');
    }
  }
}

Installation #

Add this dependency your pubspec.yaml file:

dependencies:
  enough_coi: ^0.0.1

For more info visit pub.dev.

Features and bugs #

Please file feature requests and bugs at the issue tracker.