Block Friend
Block friend will include Block or Unblock, view Block Friends List
Common Parameters
Key
Type
Description
friendId
String
id of the user
Block Friend
Request
POST /v1/friends/block HTTP/1.1
Host: friend-dev.api.mimiland.io
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 6552e9dd1f835ac7ca4ba3ec
Content-Length: 46
{
"friendId": "653263627f60e4b804d97d04"
}
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", "6552e9dd1f835ac7ca4ba3ec");
const raw = JSON.stringify({
"friendId": "653263627f60e4b804d97d04"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://friend-dev.api.mimiland.io/v1/friends/block", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
List Block Friend
Request
GET /v1/friends/block/100/0 HTTP/1.1
Host: friend-dev.api.mimiland.io
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 6552e9dd1f835ac7ca4ba3ec
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", "6552e9dd1f835ac7ca4ba3ec");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://friend-dev.api.mimiland.io/v1/friends/block/100/0", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
List Block Me
Request
GET /v1/friends/block/me/100/0 HTTP/1.1
Host: friend-dev.api.mimiland.io
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 653263627f60e4b804d97d04
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", "653263627f60e4b804d97d04");
const raw = "";
const requestOptions = {
method: "GET",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://friend-dev.api.mimiland.io/v1/friends/block/me/100/0", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Unblock Friends
Request
POST /v1/friends/unblock HTTP/1.1
Host: friend-dev.api.mimiland.io
mm-client-id: mml
Content-Type: application/json
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 653263627f60e4b804d97d04
Content-Length: 46
{
"friendId": "650ad4aa7f60e4b804d96bda"
}
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", "653263627f60e4b804d97d04");
const raw = JSON.stringify({
"friendId": "650ad4aa7f60e4b804d96bda"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://friend-dev.api.mimiland.io/v1/friends/unblock", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Last updated