GET /user_relationships/lookup
Returns existing relationships from an array of user ids
Query parameters
-
Identifier of the source user to fetch
-
Comma separated list of user_ids (1,2,3)
GET /user_relationships/lookup
curl \
-X GET https://api.cosmily.com/api/v1/user_relationships/lookup?source_id=string&target_ids=string \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": 42,
"source_id": 42,
"target_id": "string"
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}
Response examples (200)
{
"data": [
{
"id": 42,
"source_id": 42,
"target_id": "string"
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}