After the game ends, the winner will use this API to send a request to redeem the reward.
Request
GET /v1/game/end/66862431a9404bfd528fb100 HTTP/1.1 Host: roomkeeper.api.mimiland.io Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI Content-Type: application/json mm-client-id: mml mm-user-id: 662a347843e80ce0a0d73384
const myHeaders = new Headers(); myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI"); myHeaders.append("Content-Type", "application/json"); myHeaders.append("mm-client-id", "mml"); myHeaders.append("mm-user-id", "662a347843e80ce0a0d73384"); const requestOptions = { method: "GET", headers: myHeaders, redirect: "follow" }; fetch("https://roomkeeper.api.mimiland.io/v1/game/end/66862431a9404bfd528fb100", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));
Last updated 6 months ago