Generate Items
This API allows to create dynamic items in the Mimiland game, through design Id and item Id, will create another similar item for the user.
Request
POST /v1/inventory/items/findandreward HTTP/1.1
Host: invent-dev.api.mimiland.io
mm-client-id: mml
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 650ad419d995b4f348455ce2
Content-Type: application/json
Content-Length: 103
{
"items":[
{
"id": "64eea6f96961a23f62d515a9",
"ownerId":"650ad419d995b4f348455ce2",
"designId":"TOP_ADAM_M",
"gameId":"mml"
}
],
"from":"skd"
}const myHeaders = new Headers();
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
myHeaders.append("mm-user-id", "650ad419d995b4f348455ce2");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"items": [
{
"id": "64eea6f96961a23f62d515a9",
"ownerId": "650ad419d995b4f348455ce2",
"designId": "TOP_ADAM_M",
"gameId": "mml"
}
],
"from": "skd"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://invent-dev.api.mimiland.io/v1/inventory/items/findandreward", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
id. *required
String
id of the item
ownerId *required
String
OwerId of the owner
designId *required
String
Id of the design item
gameId *required
String
Id game of the game is receive
from *required
String
Id game of the game transfer
Last updated