diff options
| author | default <nobody@localhost> | 2022-09-21 09:31:05 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2022-09-21 09:31:05 +0200 |
| commit | d2bdaf378fa050b98432993ec378bbfd54d4d964 (patch) | |
| tree | 3b192c98b96a06469f089173f9e73f7c7d0f1038 /main.c | |
| parent | 9573dbcdb698bf863af9921e305ff2d818d30fe2 (diff) | |
More work in http signed request.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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; |