Host Accept
After creating a game room, This API will be needed for the creator to accept others to play together.
Request
POST /v1/room/lobby/66862431a9404bfd528fb100/accept HTTP/1.1
Host: roomkeeper.api.mimiland.io
mm-user-id: 662a347843e80ce0a0d73384
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 62
{
"memberIds":[
"65326348d995b4f348456dce"
]
}const myHeaders = new Headers();
myHeaders.append("mm-user-id", "662a347843e80ce0a0d73384");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
const raw = JSON.stringify({
"memberIds": [
"65326348d995b4f348456dce"
]
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://roomkeeper.api.mimiland.io/v1/room/lobby/66862431a9404bfd528fb100/accept", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
memberIds *required
String
Id of the user request join
Last updated