All URIs are relative to https://my.yoast.test
Method | HTTP request | Description |
---|---|---|
setSiteForSubscription | POST /api/provisioning/account/regenerate-token | Generate a new auth token |
\Yoast\MyYoastApiClient\Model\RegenerateTokenResponseDto setSiteForSubscription()
Generate a new auth token
This route generate a new password for the Basic Auth that is used by provisioner accounts to authenticate with.After this route is called, the old password will NO LONGER be valid. Please store the response of this request somewhere safe!
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Yoast\MyYoastApiClient\Api\ProvisioningAccountApi(
// 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->setSiteForSubscription();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProvisioningAccountApi->setSiteForSubscription: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Yoast\MyYoastApiClient\Model\RegenerateTokenResponseDto
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]