-
Notifications
You must be signed in to change notification settings - Fork 0
Upload token endpoint
Alvin Cheng edited this page Apr 23, 2023
·
3 revisions
This is the upload token endpoint, this endpoint will basically update the database entry for notification tokens! Which the code is stored at /src/endpoints/uploadToken.ts
This post endpoint will require 2 parameters, a 'user' parameter for the user to apply this operation on, and a 'token' parameter for the token or data to apply on. Furthermore, this endpoint will return '208', '201' or '200' on success and '500' on error.
Here is an example on how to call this endpoint.
post("http://<URL>/api/upload-token?key=<YOUR_API_KEY>", {
user: "<USER>",
token: "<TOKEN>",
})
.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