Send Donation Item
Request
POST /v1/donation/send HTTP/1.1
Host: mimillandcity-dev.api.mimiland.io
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 65326348d995b4f348456dce
Content-Length: 122
{
"sendTo": "6548c0da11284953a354e7e0",
"items": {
"ITEM_ICE_TEA":1
},
"sessionId": "ScMbpomTywaX1Sc3"
}const myHeaders = new Headers();
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
myHeaders.append("mm-user-id", "65326348d995b4f348456dce");
const raw = JSON.stringify({
"sendTo": "6548c0da11284953a354e7e0",
"items": {
"ITEM_ICE_TEA": 1
},
"sessionId": "ScMbpomTywaX1Sc3"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://mimillandcity-dev.api.mimiland.io/v1/donation/send", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
userKey *required
String
Key of the user
sendTo *required
String
Userid want to send
Last updated