-
Notifications
You must be signed in to change notification settings - Fork 0
Remove room endpoint
Alvin Cheng edited this page Apr 23, 2023
·
3 revisions
This is the remove room endpoint, as the name suggests this endpoint will remove a user from the room. I know the naming is not really accurate, but bear with me for a second. Anyways, this endpoint will only need an 'id' argument which is the id of the room and a 'user' argument for the user to remove. Furthermore, the endpoint will return a status of '401' in an invalid API key, '500' on internal server error, '400' on a non-existent user and '200' on success. Finally the source file is at /src/removeRoom.ts
.
post("http://<URL>/api/remove-room?key=<YOUR_API_KEY>", {
id: "<ID>",
user: "<USER>",
})
.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