All URIs are relative to http://localhost.
Method | HTTP request | Description |
---|---|---|
apiSitesSiteUsersGetSubresource() | GET /sites/{id}/site_users | Retrieves the collection of Siteuser resources. |
apiUsersSiteUsersGetSubresource() | GET /users/{id}/site_users | Retrieves the collection of Siteuser resources. |
deleteSiteuserItem() | DELETE /siteusers/{id} | Removes the Siteuser resource. |
postSiteuserCollection() | POST /siteusers | Creates a Siteuser resource. |
apiSitesSiteUsersGetSubresource($id, $page, $itemsPerPage): \EmonsiteApi\Models\ApiSitesSiteUsersGetSubresource200Response
Retrieves the collection of Siteuser resources.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new EmonsiteApi\Api\SiteuserApi(
// 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
$page = 1; // int | The collection page number
$itemsPerPage = 30; // int | The number of items per page
try {
$result = $apiInstance->apiSitesSiteUsersGetSubresource($id, $page, $itemsPerPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SiteuserApi->apiSitesSiteUsersGetSubresource: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
page | int | The collection page number | [optional] [default to 1] |
itemsPerPage | int | The number of items per page | [optional] [default to 30] |
\EmonsiteApi\Models\ApiSitesSiteUsersGetSubresource200Response
- Content-Type: Not defined
- Accept:
application/ld+json
,application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiUsersSiteUsersGetSubresource($id, $page, $itemsPerPage): \EmonsiteApi\Models\ApiSitesSiteUsersGetSubresource200Response
Retrieves the collection of Siteuser resources.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new EmonsiteApi\Api\SiteuserApi(
// 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
$page = 1; // int | The collection page number
$itemsPerPage = 30; // int | The number of items per page
try {
$result = $apiInstance->apiUsersSiteUsersGetSubresource($id, $page, $itemsPerPage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SiteuserApi->apiUsersSiteUsersGetSubresource: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
page | int | The collection page number | [optional] [default to 1] |
itemsPerPage | int | The number of items per page | [optional] [default to 30] |
\EmonsiteApi\Models\ApiSitesSiteUsersGetSubresource200Response
- Content-Type: Not defined
- Accept:
application/ld+json
,application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteSiteuserItem($id)
Removes the Siteuser resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new EmonsiteApi\Api\SiteuserApi(
// 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
try {
$apiInstance->deleteSiteuserItem($id);
} catch (Exception $e) {
echo 'Exception when calling SiteuserApi->deleteSiteuserItem: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postSiteuserCollection($siteuser57c801516c2b5b79ccf4541b195da432Jsonld): \EmonsiteApi\Models\Siteuser7fc182df899df5888744e3f43c9c8f05Jsonld
Creates a Siteuser resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EmonsiteApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new EmonsiteApi\Api\SiteuserApi(
// 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
);
$siteuser57c801516c2b5b79ccf4541b195da432Jsonld = new \EmonsiteApi\Models\Siteuser57c801516c2b5b79ccf4541b195da432Jsonld(); // \EmonsiteApi\Models\Siteuser57c801516c2b5b79ccf4541b195da432Jsonld | The new Siteuser resource
try {
$result = $apiInstance->postSiteuserCollection($siteuser57c801516c2b5b79ccf4541b195da432Jsonld);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SiteuserApi->postSiteuserCollection: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
siteuser57c801516c2b5b79ccf4541b195da432Jsonld | \EmonsiteApi\Models\Siteuser57c801516c2b5b79ccf4541b195da432Jsonld | The new Siteuser resource | [optional] |
\EmonsiteApi\Models\Siteuser7fc182df899df5888744e3f43c9c8f05Jsonld
- Content-Type:
application/ld+json
,application/json
,text/html
- Accept:
application/ld+json
,application/json
,text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]