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
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | Array of user ids | true | The request body(users ids) |
Example Body Parameters
- JSON
{
"users": ["integer"]
}
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X POST /api/v2/user/connection/statuses/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | Created | Response status code | Array of user ids and connection statuses |
Example responses
- 200
{
"connection_statuses": {
"1": "string",
"7": "string",
"9": "string"
}
}