All URIs are relative to https://localhost:9200/graph, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| getOwnUser() | GET /v1.0/me | Get current user |
| updateOwnUser() | PATCH /v1.0/me | Update the current user |
getOwnUser($expand): \OpenAPI\Client\Model\UserGet current user
<?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\MeUserApi(
// 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
);
$expand = array('expand_example'); // string[] | Expand related entities
try {
$result = $apiInstance->getOwnUser($expand);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MeUserApi->getOwnUser: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| expand | string[] | Expand related entities | [optional] |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateOwnUser($user_update): \OpenAPI\Client\Model\UserUpdate the current user
<?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\MeUserApi(
// 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
);
$user_update = {"preferredLanguage":"en"}; // \OpenAPI\Client\Model\UserUpdate | New user values
try {
$result = $apiInstance->updateOwnUser($user_update);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MeUserApi->updateOwnUser: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| user_update | \OpenAPI\Client\Model\UserUpdate | New user values | [optional] |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]