Open Donate Session
Request
POST /v1/donation/session 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: 46
{
"userKey":"vpcF11****A",
"donationType":2
}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({
"userKey": "vpcF****A",
"donationType": 2
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://mimillandcity-dev.api.mimiland.io/v1/donation/session", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
userKey *required
String
id of friend you want request
donationType *required
Int
message make friend
Last updated