Get User Groups
This endpoint return the list of groups the user is subscribed to.
info
This operation does not require authentication.
HTTP Request
GET /api/v2/user/{id}/groups/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | A unique integer value identifying this user |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json'
};
fetch('/api/v2/user/{id}/groups/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/user/{id}/groups/ \
-H 'Accept: application/json'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Group |
Example responses
- 200
[
{
"id": "integer",
"name": "string",
"description": "string",
"slug": "string",
"color": "string",
"privacy": {},
"visible": "boolean",
"active": "boolean",
"subscription_status": {},
"subscribed": "boolean",
"image_bigger": "string",
"image_big": "string",
"image_medium": "string",
"image_small": "string",
"emotional_image": "string",
"emotional_image_position": "integer",
"subscribers_counter": "integer"
"created_at": "string",
"created_by": {},
"managed_by": {}
},
{...}
]