Add Comments
This API allowing users to post comments, reply to others, and participate in discussions about the story
Request
POST /v1/stories/comment 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*****5xTtpdbQItzQs
Content-Length: 107
{
"storyId":"658be597b1ea171f8846cc67",
"comment": {
"content": "peekapoo"
}
}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",
"comment": {
"content": "peekapoo"
}
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://story.api.mimiland.io/v1/stories/comment", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Parameter
Key
Type
Description
content *required
String
Content wanna comment on the story
Last updated