All URIs are relative to https://app.descrb.com.
Method | HTTP request | Description |
---|---|---|
changeUserLanguageApiV1UsersLanguagePatch() | PATCH /api/v1/users/language | Change User Language |
createTrialSubApiV1UsersGetTrialPatch() | PATCH /api/v1/users/get-trial | Create Trial Sub |
createUserApiV1UsersCreatePost() | POST /api/v1/users/create | Create User |
createUserProfileApiV1UsersPost() | POST /api/v1/users/ | Create User Profile |
endActiveTrialApiV1UsersEndCurrentTrialPatch() | PATCH /api/v1/users/end-current-trial | End Active Trial |
generateReportApiV1UsersReportGet() | GET /api/v1/users/report | Generate Report |
markTrialNotificationAsSeenApiV1UsersNotificationAboutExpirePost() | POST /api/v1/users/notification-about-expire | Mark Trial Notification As Seen |
patchUserApiV1UsersPatch() | PATCH /api/v1/users/ | Patch User |
readAllUsersApiV1UsersAllGet() | GET /api/v1/users/all | Read All Users |
readUserApiV1UsersGet() | GET /api/v1/users/ | Read User |
readUserApiV1UsersPaymentsInfoGet() | GET /api/v1/users/payments-info | Read User |
readUserDescriptionsApiV1UsersUserIdDescriptionsGet() | GET /api/v1/users/{user_id}/descriptions | Read User Descriptions |
readUserNotReviewedDescriptionsApiV1UsersUserIdNotReviewedDescriptionsGet() | GET /api/v1/users/{user_id}/not-reviewed-descriptions | Read User Not Reviewed Descriptions |
readUserNotSeenDescriptionsApiV1UsersUserIdNotSeenDescriptionsGet() | GET /api/v1/users/{user_id}/not-seen-descriptions | Read User Not Seen Descriptions |
requestNewTotpApiV1UsersNewTotpPost() | POST /api/v1/users/new-totp | Request New Totp |
testEndpointApiV1UsersTesterGet() | GET /api/v1/users/tester | Test Endpoint |
toggleStateApiV1UsersToggleStatePost() | POST /api/v1/users/toggle-state | Toggle State |
updateUserApiV1UsersPut() | PUT /api/v1/users/ | Update User |
validateEmailApiV1UsersValidateEmailPost() | POST /api/v1/users/validate-email | Validate Email |
changeUserLanguageApiV1UsersLanguagePatch($language): \AkeneoPresales\DescrbAPI\Model\User
Change User Language
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
$language = 'language_example'; // string
try {
$result = $apiInstance->changeUserLanguageApiV1UsersLanguagePatch($language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->changeUserLanguageApiV1UsersLanguagePatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
language | string |
\AkeneoPresales\DescrbAPI\Model\User
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createTrialSubApiV1UsersGetTrialPatch($pro): mixed
Create Trial Sub
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
$pro = True; // bool
try {
$result = $apiInstance->createTrialSubApiV1UsersGetTrialPatch($pro);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->createTrialSubApiV1UsersGetTrialPatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
pro | bool |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createUserApiV1UsersCreatePost($user_create): \AkeneoPresales\DescrbAPI\Model\User
Create User
Create new user (moderator function).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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_create = new \AkeneoPresales\DescrbAPI\Model\UserCreate(); // \AkeneoPresales\DescrbAPI\Model\UserCreate
try {
$result = $apiInstance->createUserApiV1UsersCreatePost($user_create);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->createUserApiV1UsersCreatePost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
user_create | \AkeneoPresales\DescrbAPI\Model\UserCreate |
\AkeneoPresales\DescrbAPI\Model\User
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createUserProfileApiV1UsersPost($body_create_user_profile_api_v1_users_post): \AkeneoPresales\DescrbAPI\Model\User
Create User Profile
Create new user without the need to be logged in.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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()
);
$body_create_user_profile_api_v1_users_post = new \AkeneoPresales\DescrbAPI\Model\BodyCreateUserProfileApiV1UsersPost(); // \AkeneoPresales\DescrbAPI\Model\BodyCreateUserProfileApiV1UsersPost
try {
$result = $apiInstance->createUserProfileApiV1UsersPost($body_create_user_profile_api_v1_users_post);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->createUserProfileApiV1UsersPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
body_create_user_profile_api_v1_users_post | \AkeneoPresales\DescrbAPI\Model\BodyCreateUserProfileApiV1UsersPost |
\AkeneoPresales\DescrbAPI\Model\User
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
endActiveTrialApiV1UsersEndCurrentTrialPatch(): mixed
End Active Trial
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
try {
$result = $apiInstance->endActiveTrialApiV1UsersEndCurrentTrialPatch();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->endActiveTrialApiV1UsersEndCurrentTrialPatch: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generateReportApiV1UsersReportGet(): mixed
Generate Report
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
try {
$result = $apiInstance->generateReportApiV1UsersReportGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->generateReportApiV1UsersReportGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
markTrialNotificationAsSeenApiV1UsersNotificationAboutExpirePost(): mixed
Mark Trial Notification As Seen
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
try {
$result = $apiInstance->markTrialNotificationAsSeenApiV1UsersNotificationAboutExpirePost();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->markTrialNotificationAsSeenApiV1UsersNotificationAboutExpirePost: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
patchUserApiV1UsersPatch($user_in_db): \AkeneoPresales\DescrbAPI\Model\User
Patch User
Patch user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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_in_db = new \AkeneoPresales\DescrbAPI\Model\UserInDB(); // \AkeneoPresales\DescrbAPI\Model\UserInDB
try {
$result = $apiInstance->patchUserApiV1UsersPatch($user_in_db);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->patchUserApiV1UsersPatch: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
user_in_db | \AkeneoPresales\DescrbAPI\Model\UserInDB |
\AkeneoPresales\DescrbAPI\Model\User
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
readAllUsersApiV1UsersAllGet($id, $full_name__ilike, $email__ilike, $is_active, $order_by, $limit, $offset): \AkeneoPresales\DescrbAPI\Model\LimitOffsetPageUser
Read All Users
Retrieve all current users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
$full_name__ilike = 'full_name__ilike_example'; // string
$email__ilike = 'email__ilike_example'; // string
$is_active = True; // bool
$order_by = 'full_name,email,is_active,is_superuser,count_descriptions,user_type'; // string
$limit = 50; // int
$offset = 0; // int
try {
$result = $apiInstance->readAllUsersApiV1UsersAllGet($id, $full_name__ilike, $email__ilike, $is_active, $order_by, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->readAllUsersApiV1UsersAllGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | [optional] | |
full_name__ilike | string | [optional] | |
email__ilike | string | [optional] | |
is_active | bool | [optional] | |
order_by | string | [optional] [default to 'full_name,email,is_active,is_superuser,count_descriptions,user_type'] | |
limit | int | [optional] [default to 50] | |
offset | int | [optional] [default to 0] |
\AkeneoPresales\DescrbAPI\Model\LimitOffsetPageUser
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
readUserApiV1UsersGet(): \AkeneoPresales\DescrbAPI\Model\User
Read User
Get current user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
try {
$result = $apiInstance->readUserApiV1UsersGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->readUserApiV1UsersGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\AkeneoPresales\DescrbAPI\Model\User
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
readUserApiV1UsersPaymentsInfoGet(): mixed
Read User
Get current user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
try {
$result = $apiInstance->readUserApiV1UsersPaymentsInfoGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->readUserApiV1UsersPaymentsInfoGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
readUserDescriptionsApiV1UsersUserIdDescriptionsGet($user_id, $score, $name__ilike, $brand_name__ilike, $order_by, $limit, $offset): \AkeneoPresales\DescrbAPI\Model\LimitOffsetPageProductDescription
Read User Descriptions
Retrieve Descriptions for Given users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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_id = 'user_id_example'; // string
$score = 56; // int
$name__ilike = 'name__ilike_example'; // string
$brand_name__ilike = 'brand_name__ilike_example'; // string
$order_by = 'score,name,brand_name,created_at,brand_description_bool,product_history_description_bool,technologies_bool'; // string
$limit = 50; // int
$offset = 0; // int
try {
$result = $apiInstance->readUserDescriptionsApiV1UsersUserIdDescriptionsGet($user_id, $score, $name__ilike, $brand_name__ilike, $order_by, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->readUserDescriptionsApiV1UsersUserIdDescriptionsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
user_id | string | ||
score | int | [optional] | |
name__ilike | string | [optional] | |
brand_name__ilike | string | [optional] | |
order_by | string | [optional] [default to 'score,name,brand_name,created_at,brand_description_bool,product_history_description_bool,technologies_bool'] | |
limit | int | [optional] [default to 50] | |
offset | int | [optional] [default to 0] |
\AkeneoPresales\DescrbAPI\Model\LimitOffsetPageProductDescription
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
readUserNotReviewedDescriptionsApiV1UsersUserIdNotReviewedDescriptionsGet($user_id, $limit, $offset): \AkeneoPresales\DescrbAPI\Model\LimitOffsetPageProductDescriptionList
Read User Not Reviewed Descriptions
Retrieve Not Reviewed Descriptions for Given users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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_id = 'user_id_example'; // string
$limit = 50; // int
$offset = 0; // int
try {
$result = $apiInstance->readUserNotReviewedDescriptionsApiV1UsersUserIdNotReviewedDescriptionsGet($user_id, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->readUserNotReviewedDescriptionsApiV1UsersUserIdNotReviewedDescriptionsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
user_id | string | ||
limit | int | [optional] [default to 50] | |
offset | int | [optional] [default to 0] |
\AkeneoPresales\DescrbAPI\Model\LimitOffsetPageProductDescriptionList
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
readUserNotSeenDescriptionsApiV1UsersUserIdNotSeenDescriptionsGet($user_id, $limit, $offset): \AkeneoPresales\DescrbAPI\Model\LimitOffsetPageProductDescriptionList
Read User Not Seen Descriptions
Retrieve Not Reviewed Descriptions for Given users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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_id = 'user_id_example'; // string
$limit = 50; // int
$offset = 0; // int
try {
$result = $apiInstance->readUserNotSeenDescriptionsApiV1UsersUserIdNotSeenDescriptionsGet($user_id, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->readUserNotSeenDescriptionsApiV1UsersUserIdNotSeenDescriptionsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
user_id | string | ||
limit | int | [optional] [default to 50] | |
offset | int | [optional] [default to 0] |
\AkeneoPresales\DescrbAPI\Model\LimitOffsetPageProductDescriptionList
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
requestNewTotpApiV1UsersNewTotpPost(): \AkeneoPresales\DescrbAPI\Model\NewTOTP
Request New Totp
Request new keys to enable TOTP on the user account.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
try {
$result = $apiInstance->requestNewTotpApiV1UsersNewTotpPost();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->requestNewTotpApiV1UsersNewTotpPost: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\AkeneoPresales\DescrbAPI\Model\NewTOTP
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testEndpointApiV1UsersTesterGet(): \AkeneoPresales\DescrbAPI\Model\Msg
Test Endpoint
Test current endpoint.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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()
);
try {
$result = $apiInstance->testEndpointApiV1UsersTesterGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->testEndpointApiV1UsersTesterGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\AkeneoPresales\DescrbAPI\Model\Msg
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
toggleStateApiV1UsersToggleStatePost($user_update): \AkeneoPresales\DescrbAPI\Model\Msg
Toggle State
Toggle user state (moderator function)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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 = new \AkeneoPresales\DescrbAPI\Model\UserUpdate(); // \AkeneoPresales\DescrbAPI\Model\UserUpdate
try {
$result = $apiInstance->toggleStateApiV1UsersToggleStatePost($user_update);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->toggleStateApiV1UsersToggleStatePost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
user_update | \AkeneoPresales\DescrbAPI\Model\UserUpdate |
\AkeneoPresales\DescrbAPI\Model\Msg
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateUserApiV1UsersPut($marketing_agreement, $terms_agreement, $profile_picture, $original, $password, $full_name, $email): \AkeneoPresales\DescrbAPI\Model\User
Update User
Update user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
$marketing_agreement = True; // bool | Marketing agreement
$terms_agreement = True; // bool | Terms agreement
$profile_picture = new \AkeneoPresales\DescrbAPI\Model\AnyOfFileString(); // AnyOfFileString | Profile picture
$original = ''; // string | Original password
$password = 'password_example'; // string | New password
$full_name = 'full_name_example'; // string | Full user name
$email = 'email_example'; // string | User email
try {
$result = $apiInstance->updateUserApiV1UsersPut($marketing_agreement, $terms_agreement, $profile_picture, $original, $password, $full_name, $email);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->updateUserApiV1UsersPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
marketing_agreement | bool | Marketing agreement | |
terms_agreement | bool | Terms agreement | |
profile_picture | AnyOfFileString | Profile picture | [optional] |
original | string | Original password | [optional] [default to ''] |
password | string | New password | [optional] |
full_name | string | Full user name | [optional] |
string | User email | [optional] |
\AkeneoPresales\DescrbAPI\Model\User
- Content-Type:
multipart/form-data
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
validateEmailApiV1UsersValidateEmailPost($body): \AkeneoPresales\DescrbAPI\Model\Msg
Validate Email
Reset password
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
$config = AkeneoPresales\DescrbAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new AkeneoPresales\DescrbAPI\Api\UsersApi(
// 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
);
$body = array('key' => new \stdClass); // object
try {
$result = $apiInstance->validateEmailApiV1UsersValidateEmailPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->validateEmailApiV1UsersValidateEmailPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
body | object |
\AkeneoPresales\DescrbAPI\Model\Msg
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]