abouttreesummaryrefslogcommitdiff
path: root/examples/ReplyRoomkey.c
diff options
context:
space:
mode:
authorPatrick2023-11-14 13:12:41 +0100
committerPatrick2023-11-14 13:12:41 +0100
commitbe730e09b6376a40fd3852d5a2c8876b27c2c7bb (patch)
treefd7b8ec2f21c8f9074259df9b0b37fe499fa4171 /examples/ReplyRoomkey.c
parent58e0d63958d7406b7bbf3b964d9ea9a2770e0741 (diff)
downloadmatrix_esp_thesis-be730e09b6376a40fd3852d5a2c8876b27c2c7bb.tar.gz
matrix_esp_thesis-be730e09b6376a40fd3852d5a2c8876b27c2c7bb.zip
update examples
Diffstat (limited to 'examples/ReplyRoomkey.c')
-rw-r--r--examples/ReplyRoomkey.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/examples/ReplyRoomkey.c b/examples/ReplyRoomkey.c
deleted file mode 100644
index 7cc506e..0000000
--- a/examples/ReplyRoomkey.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <matrix.h>
-#include <stdio.h>
-
-#define SERVER "https://matrix.org"
-#define ACCESS_TOKEN "syt_cHNjaG8_yBvTjVTquGCikvsAenOJ_49mBMO"
-#define DEVICE_ID "MAZNCCZLBR"
-#define USER_ID "@pscho:matrix.org"
-#define ROOM_ID "!XKFUjAsGrSSrpDFIxB:matrix.org"
-
-int
-main(void)
-{
- MatrixClient client;
- MatrixClientInit(&client);
-
- MatrixHttpInit(&client.hc, SERVER);
-
- MatrixClientSetAccessToken(&client,
- ACCESS_TOKEN);
- MatrixClientSetDeviceId(&client,
- DEVICE_ID);
- MatrixClientSetUserId(&client,
- USER_ID);
-
-
- MatrixClientSendEventEncrypted(&client,
- ROOM_ID,
- "m.room.message",
- "{\"body\":\"Hello\",\"msgtype\":\"m.text\"}");
-
- MatrixClientShareMegolmOutSession(&client,
- USER_ID,
- "ULZZOKJBYN",
- &client.megolmOutSessions[0]);
-
- MatrixHttpDeinit(&client.hc);
-
- return 0;
-}