Start Game
API is used for both host and player to start game
Request
POST /v1/game/start/66862431a9404bfd528fb100 HTTP/1.1
Host: roomkeeper.api.mimiland.io
mm-user-id: 662a347843e80ce0a0d73384
mm-client-id: mml
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
const myHeaders = new Headers();
myHeaders.append("mm-user-id", "662a347843e80ce0a0d73384");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
const requestOptions = {
method: "POST",
headers: myHeaders,
redirect: "follow"
};
fetch("https://roomkeeper.api.mimiland.io/v1/game/start/66862431a9404bfd528fb100", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Last updated