matrix++
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
19ecb2a705
commit
d42a50b3c6
3 changed files with 71 additions and 0 deletions
16
matrix/matrix-client.py
Executable file
16
matrix/matrix-client.py
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import urllib
|
||||
from mautrix.client import ClientAPI
|
||||
|
||||
matrix_server="ungleich.matrix.ungleich.cloud"
|
||||
matrix_user="@nico:ungleich.ch"
|
||||
matrix_password=sys.argv[1]
|
||||
|
||||
client = ClientAPI(matrixuser,
|
||||
base_url=f"https://{matrix_server}"
|
||||
token="syt_123_456")
|
||||
|
||||
|
||||
await print(client.whoami())
|
||||
Loading…
Add table
Add a link
Reference in a new issue