New: GET /api/key

This commit is contained in:
synt-xerror
2026-02-23 08:31:26 -03:00
parent 0543a9e9ce
commit b9b474af40
4 changed files with 41 additions and 70 deletions

View File

@@ -3,11 +3,15 @@
#include <stdlib.h>
int main() {
static const char* username = "YOUR_USER_NAME";
static const char* username = "YOUR_USERNAME";
static const char* api_key = "YOUR_API_KEY";
char* out = NULL;
// GET /api/key
if (neocities_apikey(username, "YOUR_PASSWORD", &out) == 0) printf("%s", out);
free(out);
// GET /api/info
if (neocities_info(username, &out) == 0) printf("%s", out);
free(out);