Help language development. Donate to The Perl Foundation

Matrix::Client cpan:MATIASL last updated on 2020-05-07

Matrix-Client-0.5.2/

Matrix::Client

A Raku library for Matrix.

Synopsis

use Matrix::Client;

my $client = Matrix::Client.new(
    :home-server<https://matrix.org>,
    :device-id<matrix-client>
);

$client.login(:username<myuser>, :password<s3cr3t>);

# Check my user
say $client.whoami;  # @myuser:matrix.org

# Send a message to a random room that I'm in
my $room = $client.joined-rooms.pick;
say "Sending a message to {$room.name}";
$room.send("Hello from Raku!");

Description

Matrix is an open network for secure, decentralized communication.

This module provides an interface to interact with a Matrix homeserver through the Client-Server API. It's currenlty on active development but it's mostly stable for day to day use.

Here's a not complete list of things that can be done:

There are many missing endpoints (you can check a complete checklist here).

Documentation

There's a couple of pages of documentation on the docs/ directory. This includes API documentation, basic usage, examples, etc.

Author

Matías Linares [email protected] | Matrix ID: @matias:matrix.deprecated.org