Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
Nico Schottelius 2025-01-31 15:25:10 +01:00
commit d42a50b3c6
3 changed files with 71 additions and 0 deletions

16
matrix/matrix-client.py Executable file
View 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())