aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-21 09:31:05 +0200
committerdefault <nobody@localhost>2022-09-21 09:31:05 +0200
commitd2bdaf378fa050b98432993ec378bbfd54d4d964 (patch)
tree3b192c98b96a06469f089173f9e73f7c7d0f1038 /main.c
parent9573dbcdb698bf863af9921e305ff2d818d30fe2 (diff)
More work in http signed request.
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5ae39c5..ec3dbf6 100644
--- a/main.c
+++ b/main.c
@@ -2,6 +2,8 @@
/* copyright (c) 2022 grunfink - MIT license */
#include "xs.h"
+#include "xs_encdec.h"
+#include "xs_json.h"
#include "snac.h"
@@ -19,10 +21,18 @@ int main(int argc, char *argv[])
int status;
d_char *payload;
int p_size;
- http_signed_request(&snac, "GET", "https://comam.es/snac/jessie",
+ xs *response;
+
+ response = http_signed_request(&snac, "GET", "https://mastodon.social/users/VictorMoral",
headers, NULL, 0, &status, &payload, &p_size);
{
+ xs *j1 = xs_json_dumps_pp(response, 4);
+ printf("response:\n%s\n", j1);
+ printf("payload:\n%s\n", payload);
+ }
+
+ {
xs *list = queue(&snac);
char *p, *fn;