Skip to main content

List User's Connections Statuses

This endpoint lists the connection/follow statuses of the logged user starting from a users array

info

This operation requires authentication.

HTTP Request

POST /api/v2/user/connection/statuses/

Parameters

NameInTypeRequiredDescription
bodybodyArray of user idstrueThe request body(users ids)

Example Body Parameters

{
"users": ["integer"]
}

Example Request

const inputBody = '{
"users": ["integer"]
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization': 'Bearer <token>'
};

fetch('/api/v2/user/connection/statuses/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200CreatedResponse status codeArray of user ids and connection statuses

Example responses

{
"connection_statuses": {
"1": "string",
"7": "string",
"9": "string"
}
}