Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.77 KB

ProvisioningAccountApi.md

File metadata and controls

53 lines (36 loc) · 1.77 KB

Yoast\MyYoastApiClient\ProvisioningAccountApi

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

setSiteForSubscription

\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!

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Yoast\MyYoastApiClient\Model\RegenerateTokenResponseDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]