-
Notifications
You must be signed in to change notification settings - Fork 0
Delete user endpoint
Alvin Cheng edited this page Apr 23, 2023
·
3 revisions
This is the delete user endpoint, this endpoint will delete a user's account along with all the messages. The server will accept a 'user' argument for the user to delete from the database. Furthermore, this endpoint will return a status of '401' on invalid api key, '200' on success, '500' on an internal server error and '400' when the user does not exist. Here is an example on how to call the endpoint below!!
post("http://<URL>/api/delete-user?key=<YOUR_API_KEY>", {
username: "<USERNAME>",
})
.then((res) => {
console.log(res);
})
.catch((err) => {
console.error(err);
});
- Home
- Login endpoint
- Block user endpoint
- Create room endpoint
- Delete user endpoint
- Get all rooms endpoint
- Get GIF endpoint
- Get messages endpoint
- Get public rooms endpoint
- Get user info endpoint
- Get users info endpoint (Deprecated)
- Join room endpoint
- Signup endpoint
- Report room endpoint
- Remove room endpoint
- Update description endpoint
- Follow user endpoint
- Unfollow user endpoint
- Update icon color endpoint
- Upload content endpoint
- Upload content endpoint (Deprecated)
- Verify client endpoint
- Upload token endpoint
- Chill&chat websockets
- Message socket
- Keyboard socket
- Delete message socket
- User content
- Final words&thoughts
- Run API