diff options
author | Matias Linares <matiaslina@gmail.com> | 2021-01-11 22:48:16 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2021-01-11 22:48:16 -0300 |
commit | f6397392c4fc88d1e9335bbbc4f91d8cb2f29368 (patch) | |
tree | dddb106193d48ca078946d2edb403ef75faca9dd /docs/usage.rakudoc | |
parent | 14551a46b61a78a55cacf282e0534a1938215467 (diff) | |
parent | 289165e26df8830a15b6df1a63321583a2e67499 (diff) | |
download | perl6-matrix-client-f6397392c4fc88d1e9335bbbc4f91d8cb2f29368.tar.gz |
Merge branch 'documentation'
Diffstat (limited to 'docs/usage.rakudoc')
-rw-r--r-- | docs/usage.rakudoc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/docs/usage.rakudoc b/docs/usage.rakudoc new file mode 100644 index 0000000..03454d1 --- /dev/null +++ b/docs/usage.rakudoc @@ -0,0 +1,41 @@ +=begin pod +=head1 Before we begin… + +This guide will be a port from L<this guide|https://matrix.org/docs/guides/usage-of-the-matrix-js-sdk> +by the Matrix team. + +=head1 Making a Matrix Client + +Let's explore how we would make a very simple Matrix client, with the only ability to perform an initial +sync, and get the member list and the timeline for rooms of our choice. + +This guide will cover: + +=item Login +=item Simple syncing +=item Listening for timeline events +=item Sending messages to rooms +=item How to respond to specific messages + +=head2 Preparing the project + +Before we start, make sure you have perl6 and zef installed. My sugestion is to install +L<rakudobrew|https://github.com/tadzik/rakudobrew> and follow the instructions. + +Once you're ready, the first thing is to install +L<Matrix::Client|https://github.com/matiaslina/perl6-matrix-client> with C<zef> + +=begin code +zef install Matrix::Client +=end code + +And now we can include it on our source exaclty as expected. + +=begin code +use Matrix::Client; +=end code + +=head2 Login with an access token + + +=end pod
\ No newline at end of file |