All URIs are relative to https://atlas.forsta.io/v1
Method | HTTP request | Description |
---|---|---|
passwordResetCreate | POST /password/reset/ | Sends email or SMS to a user with a one time token for password resetting. |
passwordResetUpdate | PUT /password/reset/{user_id}/ | Confirm the password reset via token. |
\Swagger\Client\Model\PasswordResetViewPostResponse passwordResetCreate($data)
Sends email or SMS to a user with a one time token for password resetting.
Possible values for method field: "email", "sms"
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JSON Web Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\PasswordApi(
// 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
);
$data = new \Swagger\Client\Model\PasswordReset(); // \Swagger\Client\Model\PasswordReset |
try {
$result = $apiInstance->passwordResetCreate($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PasswordApi->passwordResetCreate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
data | \Swagger\Client\Model\PasswordReset |
\Swagger\Client\Model\PasswordResetViewPostResponse
[JSON Web Token](../../README.md#JSON Web Token)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\PasswordResetViewPutResponse passwordResetUpdate($user_id, $data)
Confirm the password reset via token.
Confirm the password reset via token.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JSON Web Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\PasswordApi(
// 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 |
$data = new \Swagger\Client\Model\PasswordResetConfirm(); // \Swagger\Client\Model\PasswordResetConfirm |
try {
$result = $apiInstance->passwordResetUpdate($user_id, $data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PasswordApi->passwordResetUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
user_id | string | ||
data | \Swagger\Client\Model\PasswordResetConfirm |
\Swagger\Client\Model\PasswordResetViewPutResponse
[JSON Web Token](../../README.md#JSON Web Token)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]