Create Room
Create Room is used to create rooms according to the game the player wants to play. Such as Connect4 or Caro...
Request
POST /v1/room/create 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: 310
{
"groupName": "emote_game",
"configId": "TIC_TAC_TOE",
"tag": "TIC_TAC_TOE",
"roomMode": ["textMode"],
"channelType": "public",
"version": 1,
"configVersion": "1",
"rules": {
"betValue": 20000,
"betType": "COIN"
}
}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({
"groupName": "emote_game",
"configId": "TIC_TAC_TOE",
"tag": "TIC_TAC_TOE",
"roomMode": [
"textMode"
],
"channelType": "public",
"version": 1,
"configVersion": "1",
"rules": {
"betValue": 20000,
"betType": "COIN"
}
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://roomkeeper.api.mimiland.io/v1/room/create", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
groupName *required
String
Name of the game group
configId *required
String
Id of the config game
tag *required
String
tag name
roomMode *required
Array
Mode of the room
channelType *required
String
Type of the channel
configVersion *required
Interger
Version
betValue *required
Interger
Value of the bet
betType *required
String
Type of the bet
Last updated