aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2019-06-04 23:04:43 -0300
committerMatias Linares <matiaslina@gmail.com>2019-06-04 23:04:43 -0300
commit0b1e90f84b94e22fc8d5a1eb6158498a1a5b2f17 (patch)
treeb5b10821a74ac7e2a3fcc2e2a730ee06f80cc230 /README.md
parent0769ebef8221cf5fc40a070c7f19d4a8a8e94a46 (diff)
downloadperl6-matrix-client-0b1e90f84b94e22fc8d5a1eb6158498a1a5b2f17.tar.gz
Update readmev0.3.0
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 24 insertions, 17 deletions
diff --git a/README.md b/README.md
index 43c1aac..e629915 100644
--- a/README.md
+++ b/README.md
@@ -1,26 +1,33 @@
-# Matrix client
+### multi method tags
-A perl 6 library for [Matrix](https://matrix.org).
+```perl6
+multi method tags(
+ Str $room-id,
+ Str:D $tag,
+ $order
+) returns Mu
+```
-## Status
+PUT - /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags/{tag}
-This project is in early development. A lot of methods return a raw
-`HTTP::Response` and not something from this library.
+### multi method tags
-## Examples
+```perl6
+multi method tags(
+ Str $room-id
+) returns Mu
+```
-From the `examples` directory:
+GET - /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags
- use v6;
- use Matrix::Client;
+### method remove-tag
- # 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];
+```perl6
+method remove-tag(
+ Str $room-id,
+ Str:D $tag
+) returns Mu
+```
- # Show all joined rooms
- say $client.rooms(:sync);
+DELETE - /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags/{tag}
- # And finally logout.
- $client.logout