Skip to main content

Check User Connection

This endpoint returns is_connection = true if the user (identified in path) is connected with me

info

This operation requires authentication.

HTTP Request

GET /api/v2/user/{id}/is_connection/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/{id}/is_connection/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codenone

Example responses

{
"is_connection": "boolean"
}