Go to file
Christian Pauly c70b149c20 change: Remove logger
The logger package has a lot of issues.
The colors are not working in web and on iOS.
Emojis are not working on some platforms.
It introduced a not very important library in a SDk which is intended to
be as minimal as possible.
This simplifies the logging to a format which works everywhere.
The # Syntax makes it also look good as markdown.
It is not very far away from the default syntax of errors and stacktraces.
It still provides several log levels, the same API and a list of output events for the logviewer.
2021-05-12 12:14:04 +02:00
example docs: Clean up 2020-12-30 12:46:02 +01:00
lib change: Remove logger 2021-05-12 12:14:04 +02:00
test change: Remove logger 2021-05-12 12:14:04 +02:00
.gitignore Initial commit 2020-12-28 12:01:03 +01:00
.gitlab-ci.yml fix: Typo and wellknown parsing 2021-03-01 11:38:53 +01:00
CHANGELOG.md bump version 2021-05-10 12:08:26 +02:00
CONTRIBUTING.md fix: Typo and wellknown parsing 2021-03-01 11:38:53 +01:00
LICENSE docs: Update license to MIT 2021-01-08 13:14:03 +01:00
README.md docs: Clean up 2020-12-30 12:46:02 +01:00
analysis_options.yaml refactor: Enable more lints 2021-05-05 12:32:20 +02:00
pubspec.yaml change: Remove logger 2021-05-12 12:14:04 +02:00

README.md

Matrix API Lite

This package is a dead simple data model over the client-server specification of https://matrix.org and is mostly used as a base for a more complete Matrix SDK. It doesn't contain any logic and just provides methods for all API endpoints and json parser for all objects. It is intended to be as close to the specificaton as possible so we get a 1:1 relationship with the API. More complex logic like a sync loop or a data model for rooms should be implemented in a more complete Matrix SDK.

Usage

A simple usage example:

import 'package:matrix_api_lite/src/matrix_api.dart';

void main() async {
  final api = MatrixApi(homeserver: Uri.parse('https://matrix.org'));
  final capabilities = await api.requestServerCapabilities();
  print(capabilities.toJson());
}