All URIs are relative to http://api.madana.io/rest.
Method | HTTP request | Description |
---|---|---|
activateUser() | GET /account/activation/{token} | |
createPasswordReset() | POST /account/password | Sends an Password reset mail to the given MailAddress. |
requestVerificationMail() | GET /account/verifymail | Used to request a new activation-mail for the user. |
updatePassword() | PUT /account/password | Receives the Password reset and tries to set the provided password for the user. |
activateUser($token): \SplFileObject
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AccountServiceApi(
// 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()
);
$token = 'token_example'; // string
try {
$result = $apiInstance->activateUser($token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountServiceApi->activateUser: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
token | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createPasswordReset($body): \SplFileObject
Sends an Password reset mail to the given MailAddress.
Sends an Password reset mail to the given MailAddress
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AccountServiceApi(
// 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 = new \OpenAPI\Client\Model\JsonMDNMailAddress(); // \OpenAPI\Client\Model\JsonMDNMailAddress | - the MaiAddress under which the user has signed up
try {
$result = $apiInstance->createPasswordReset($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountServiceApi->createPasswordReset: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
body | \OpenAPI\Client\Model\JsonMDNMailAddress | - the MaiAddress under which the user has signed up | [optional] |
No authorization required
- Content-Type:
application/json
- Accept:
application/json
,application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
requestVerificationMail(): map[string,object]
Used to request a new activation-mail for the user.
Used to request a new activation-mail for the user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AccountServiceApi(
// 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->requestVerificationMail();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountServiceApi->requestVerificationMail: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
map[string,object]
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updatePassword($body): \SplFileObject
Receives the Password reset and tries to set the provided password for the user.
Receives the Password reset and tries to set the provided password for the user. The Password will only be set if a valid token is provided
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AccountServiceApi(
// 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 = new \OpenAPI\Client\Model\JsonMDNPasswordReset(); // \OpenAPI\Client\Model\JsonMDNPasswordReset | - the MDN_PasswordReset Object
try {
$result = $apiInstance->updatePassword($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountServiceApi->updatePassword: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
body | \OpenAPI\Client\Model\JsonMDNPasswordReset | - the MDN_PasswordReset Object | [optional] |
No authorization required
- Content-Type:
application/json
- Accept:
application/json
,application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]