Love Story
Used to react to love story/ love comments of the story and comment on that story
Love Story
Request
POST /v1/stories/love HTTP/1.1
Host: story.api.mimiland.io
Content-Type: application/json
mm-client-id: mml
mm-user-id: 6552e9dd1f835ac7ca4ba3ec
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 48
{
"storyId":"658be597b1ea171f8846cc67"
}
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("mm-user-id", "6552e9dd1f835ac7ca4ba3ec");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
const raw = JSON.stringify({
"storyId": "658be597b1ea171f8846cc67"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://story.api.mimiland.io/v1/stories/love", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Unlove Story
Request
POST /v1/stories/unlove HTTP/1.1
Host: story.api.mimiland.io
Content-Type: application/json
mm-client-id: mml
mm-user-id: 6552e9dd1f835ac7ca4ba3ec
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Length: 48
{
"storyId":"658be597b1ea171f8846cc67"
}
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("mm-user-id", "6552e9dd1f835ac7ca4ba3ec");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
const raw = JSON.stringify({
"storyId": "658be597b1ea171f8846cc67"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://story.api.mimiland.io/v1/stories/unlove", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Love Comment Story
Request
POST /v1/stories/comment/love HTTP/1.1
Host: story.api.mimiland.io
Content-Type: application/json
mm-client-id: mml
mm-user-id: 6552e9dd1f835ac7ca4ba3ec
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQIHwduo-tzQs
Content-Length: 89
{
"storyId":"658be597b1ea171f8846cc67",
"commentId": "658be6aeb1ea171f8846cc6c"
}
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("mm-user-id", "6552e9dd1f835ac7ca4ba3ec");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
const raw = JSON.stringify({
"storyId": "658be597b1ea171f8846cc67",
"commentId": "658be6aeb1ea171f8846cc6c"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://story.api.mimiland.io/v1/stories/comment/love", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Parameter
Key
Type
Description
commentId *required
String
Id of the comment
Last updated