Leave Room
This API is used to users leave rooms for some reason.
Request
POST /v1/room/leaves HTTP/1.1
Host: roomkeeper.api.mimiland.io
mm-client-id: mml
mm-user-id: 662a347843e80ce0a0d73384
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 47
{
"roomUid": "6655a2f9763e87d8196b672c"
}
const myHeaders = new Headers();
myHeaders.append("mm-client-id", "mml");
myHeaders.append("mm-user-id", "662a347843e80ce0a0d73384");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
const raw = JSON.stringify({
"roomUid": "6655a2f9763e87d8196b672c"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://roomkeeper.api.mimiland.io/v1/room/leaves", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Last updated