From 0f93b0be310d3b60fa18f9d97fac5e8afebff6a6 Mon Sep 17 00:00:00 2001 From: meltland Date: Sun, 9 Mar 2025 21:53:46 -0400 Subject: posting and some others --- COMMANDS.md | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) (limited to 'COMMANDS.md') diff --git a/COMMANDS.md b/COMMANDS.md index 8479ac0..273e400 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -4,19 +4,49 @@ Register an account. ### Required fields -- `username`: 1-20 characters, a-z0-9-_ -- `password`: 1-255 characters -- `invite_code`: 16 characters +- string `username`: 1-20 characters, a-z0-9-_ +- string `password`: 1-255 characters +- string `invite_code`: 16 characters ## `login_pswd` Log in using a password. ### Required fields -- `username`: 1-20 characters -- `password`: 1-255 characters +- string `username`: 1-20 characters +- string `password`: 1-255 characters ## `login_token` Log in using a token. ### Required fields -- `token`: 32-127 characters \ No newline at end of file +- string `token`: 32-127 characters + +## `get_user` +Get a user's profile. +*Authentication required.* + +### Required fields +- string `username`: 1-20 characters + +## `set_property` +Set a property of your account, such as your display name or bio. +*Authentication required.* + +### Required fields +- string `property`: 1-63 characters + - Should be a valid property, such as `display_name`, `bio`, `avatar`, or `lastfm`. +- string `value`: 0-2047 characters + +## `get_inbox` +Get the inbox. +*Authentication required.* +*No required fields.* + +## `post` +Create a post. +*Authentication required.* + +### Required fields +- string `content`: 0-3000 characters +- list `replies`: 0-3 items +- list `attachments`: 0-3 items \ No newline at end of file -- cgit 1.4.1-2-gfad0