All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
groupUsersAddUserToGroup() | PUT /api/manage/v1/Groups/{id}/Users/{userId} | Add user to the group by identifier |
groupUsersGetUsersInGroup() | GET /api/manage/v1/Groups/{id}/Users | Returns users in the group by identifier |
groupUsersLeaveFromGroup() | DELETE /api/manage/v1/Groups/{id}/leave | Leave from the group |
groupUsersRemoveFromGroup() | DELETE /api/manage/v1/Groups/{id}/Users/{userId} | Remove user from the group by identifier |
groupUsersAddUserToGroup($id, $user_id)
Add user to the group by identifier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\GroupUsersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | Identifier of group
$user_id = 'user_id_example'; // string | Identifier of user
try {
$apiInstance->groupUsersAddUserToGroup($id, $user_id);
} catch (Exception $e) {
echo 'Exception when calling GroupUsersApi->groupUsersAddUserToGroup: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of group | |
user_id | string | Identifier of user |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
groupUsersGetUsersInGroup($id, $skip, $take): \OpenAPI\Client\cloud\fastreport\model\GroupUsersVM
Returns users in the group by identifier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\GroupUsersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | Identifier of group
$skip = 0; // int | how many to skip
$take = 10; // int | how many to take
try {
$result = $apiInstance->groupUsersGetUsersInGroup($id, $skip, $take);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupUsersApi->groupUsersGetUsersInGroup: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of group | |
skip | int | how many to skip | [optional] [default to 0] |
take | int | how many to take | [optional] [default to 10] |
\OpenAPI\Client\cloud\fastreport\model\GroupUsersVM
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
groupUsersLeaveFromGroup($id)
Leave from the group
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\GroupUsersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | Identifier of group
try {
$apiInstance->groupUsersLeaveFromGroup($id);
} catch (Exception $e) {
echo 'Exception when calling GroupUsersApi->groupUsersLeaveFromGroup: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of group |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
groupUsersRemoveFromGroup($id, $user_id)
Remove user from the group by identifier
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\GroupUsersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | Identifier of group
$user_id = 'user_id_example'; // string | Identifier of user
try {
$apiInstance->groupUsersRemoveFromGroup($id, $user_id);
} catch (Exception $e) {
echo 'Exception when calling GroupUsersApi->groupUsersRemoveFromGroup: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Identifier of group | |
user_id | string | Identifier of user |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]