Get the list of resource groups
Get the list of resource groups
Paginated list of resource groups
GET /api/admin/v1/analytics/groups |
Parameters
int
page, Pagination page number
int
per_page, Number of elements in one pagination page.
string
search, Search by title
string
sort, The field to sort by.
string
dir, In which direction to sort.
int
intercom_id, The field for filtering groups by belonging to the intercom, the intercom ID is setting.
200 |
Returns a list of resource groups on the i pagination page
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/admin/v1/analytics/groups' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"page": 0,
"per_page": 0,
"search": "string",
"sort": "string",
"dir": "string",
"intercom_id": 0
}'
PHP
PHP
$data = array (
'page' => 0,
'per_page' => 0,
'search' => 'string',
'sort' => 'string',
'dir' => 'string',
'intercom_id' => 0,
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/analytics/groups', false, $context);