GET /users/:id/following
Returns a list of users who follow specified user.
Path parameters
-
ID of the resource to fetch
GET /users/{id}/following
curl \
-X GET https://api.cosmily.com/api/v1/users/{id}/following \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": 42,
"auth0_id": "string",
"username": "string",
"email": "string",
"user_type": "string",
"followed_by_count": 42,
"following_count": 42,
"supergroups": [
"string"
],
"last_active": "string",
"followed_by_me": true,
"profile_picture": {
"id": 42,
"user_id": 42,
"image": "string",
"url": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}
Response examples (200)
{
"data": [
{
"id": 42,
"auth0_id": "string",
"username": "string",
"email": "string",
"user_type": "string",
"followed_by_count": 42,
"following_count": 42,
"supergroups": [
"string"
],
"last_active": "string",
"followed_by_me": true,
"profile_picture": {
"id": 42,
"user_id": 42,
"image": "string",
"url": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}