]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - examples/ReplyRoomkey.c
update examples
[matrix_esp_thesis] / examples / ReplyRoomkey.c
diff --git a/examples/ReplyRoomkey.c b/examples/ReplyRoomkey.c
deleted file mode 100644 (file)
index 7cc506e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <matrix.h>\r
-#include <stdio.h>\r
-\r
-#define SERVER       "https://matrix.org"\r
-#define ACCESS_TOKEN "syt_cHNjaG8_yBvTjVTquGCikvsAenOJ_49mBMO"\r
-#define DEVICE_ID    "MAZNCCZLBR"\r
-#define USER_ID      "@pscho:matrix.org"\r
-#define ROOM_ID      "!XKFUjAsGrSSrpDFIxB:matrix.org"\r
-\r
-int\r
-main(void)\r
-{\r
-    MatrixClient client;\r
-    MatrixClientInit(&client);\r
-    \r
-    MatrixHttpInit(&client.hc, SERVER);\r
-\r
-    MatrixClientSetAccessToken(&client,\r
-        ACCESS_TOKEN);\r
-    MatrixClientSetDeviceId(&client,\r
-        DEVICE_ID);\r
-    MatrixClientSetUserId(&client,\r
-        USER_ID);\r
-\r
-\r
-    MatrixClientSendEventEncrypted(&client,\r
-        ROOM_ID,\r
-        "m.room.message",\r
-        "{\"body\":\"Hello\",\"msgtype\":\"m.text\"}");\r
-\r
-    MatrixClientShareMegolmOutSession(&client,\r
-        USER_ID,\r
-        "ULZZOKJBYN",\r
-        &client.megolmOutSessions[0]);\r
-        \r
-    MatrixHttpDeinit(&client.hc);\r
-\r
-    return 0;\r
-}\r