summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2019-06-05 00:44:43 -0300
committerMatias Linares <matiaslina@gmail.com>2019-06-05 00:44:43 -0300
commit4c007e0df300e7fb281fcadbcf707b71ed7e2483 (patch)
tree9c46d40fce06d2f187be35cedd9514279999070a /README.md
parent6f12086338bcb4fefbef374710449f364a2faf0f (diff)
downloadperl6-matrix-client-4c007e0df300e7fb281fcadbcf707b71ed7e2483.tar.gz
Get old README
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 17 insertions, 24 deletions
diff --git a/README.md b/README.md
index e629915..43c1aac 100644
--- a/README.md
+++ b/README.md
@@ -1,33 +1,26 @@
-### multi method tags
+# Matrix client
-```perl6
-multi method tags(
- Str $room-id,
- Str:D $tag,
- $order
-) returns Mu
-```
+A perl 6 library for [Matrix](https://matrix.org).
-PUT - /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags/{tag}
+## Status
-### multi method tags
+This project is in early development. A lot of methods return a raw
+`HTTP::Response` and not something from this library.
-```perl6
-multi method tags(
- Str $room-id
-) returns Mu
-```
+## Examples
-GET - /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags
+From the `examples` directory:
-### method remove-tag
+ use v6;
+ use Matrix::Client;
-```perl6
-method remove-tag(
- Str $room-id,
- Str:D $tag
-) returns Mu
-```
+ # Instantiate a new client for a given home-server
+ my $client = Matrix::Client.new: :home-server<https://matrix.org>
+ # Login
+ $client.login: @*ARGS[0], @*ARGS[1];
-DELETE - /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags/{tag}
+ # Show all joined rooms
+ say $client.rooms(:sync);
+ # And finally logout.
+ $client.logout