All URIs are relative to https://ocis.ocis.rolling.owncloud.works/graph, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createGroup() | POST /v1.0/groups | Add new entity to groups |
listGroups() | GET /v1.0/groups | Get entities from groups |
createGroup($group): \OpenAPI\Client\Model\Group
Add new entity to groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenAPI\Client\Api\GroupsApi(
// 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
);
$group = new \OpenAPI\Client\Model\Group(); // \OpenAPI\Client\Model\Group | New entity
try {
$result = $apiInstance->createGroup($group);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupsApi->createGroup: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
group | \OpenAPI\Client\Model\Group | New entity |
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listGroups($search, $orderby, $select, $expand): \OpenAPI\Client\Model\CollectionOfGroup
Get entities from groups
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new OpenAPI\Client\Api\GroupsApi(
// 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
);
$search = 'search_example'; // string | Search items by search phrases
$orderby = array('orderby_example'); // string[] | Order items by property values
$select = array('select_example'); // string[] | Select properties to be returned
$expand = array('expand_example'); // string[] | Expand related entities
try {
$result = $apiInstance->listGroups($search, $orderby, $select, $expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GroupsApi->listGroups: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
search | string | Search items by search phrases | [optional] |
orderby | string[] | Order items by property values | [optional] |
select | string[] | Select properties to be returned | [optional] |
expand | string[] | Expand related entities | [optional] |
\OpenAPI\Client\Model\CollectionOfGroup
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]