diff options
| author | Patrick | 2023-11-14 13:12:41 +0100 |
|---|---|---|
| committer | Patrick | 2023-11-14 13:12:41 +0100 |
| commit | be730e09b6376a40fd3852d5a2c8876b27c2c7bb (patch) | |
| tree | fd7b8ec2f21c8f9074259df9b0b37fe499fa4171 /examples/Login.c | |
| parent | 58e0d63958d7406b7bbf3b964d9ea9a2770e0741 (diff) | |
| download | matrix_esp_thesis-be730e09b6376a40fd3852d5a2c8876b27c2c7bb.tar.gz matrix_esp_thesis-be730e09b6376a40fd3852d5a2c8876b27c2c7bb.zip | |
update examples
Diffstat (limited to 'examples/Login.c')
| -rw-r--r-- | examples/Login.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/Login.c b/examples/Login.c index 08f981a..ffa4dd3 100644 --- a/examples/Login.c +++ b/examples/Login.c @@ -1,10 +1,11 @@ #include <stdio.h>
#include <matrix.h>
-#define SERVER "https://matrix.org"
-#define USERNAME "pscho"
-#define PASSWORD "Wc23EbmB9G3faMq"
-#define DISPLAYNAME "MatrixClient"
+#define SERVER "https://matrix.org"
+#define USER_ID "@example:matrix.org"
+#define USERNAME ""
+#define PASSWORD ""
+#define DEVICE_NAME ""
int
@@ -18,7 +19,7 @@ main(void) MatrixClientLoginPassword(&client,
USERNAME,
PASSWORD,
- DISPLAYNAME);
+ DEVICE_NAME);
printf("Access Token: %s\n", client.accessToken);
printf("Device ID: %s\n", client.deviceId);
|
