GET /products/:id_or_alias/top_users
Returns top users for product
GET
/products/{id_or_alias}/top_users
curl \
-X GET https://api.cosmily.com/api/v1/products/{id_or_alias}/top_users \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string",
"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,
"username": "string",
"user_type": "string",
"last_active": "string",
"profile_picture": {
"id": 42,
"user_id": 42,
"image": "string",
"url": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}