All URIs are relative to https://my.yoast.test
Method | HTTP request | Description |
---|---|---|
getContactForSite | POST /api/PluginInstallation/getContactEmail | |
installAndActivatePlugin | POST /api/PluginInstallation/installAndActivatePlugin | |
revokeToken | POST /api/PluginInstallation/revokeToken |
getContactForSite($body)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Yoast\MyYoastApiClient\Api\PluginInstallationApi(
// 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 \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto(); // \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto |
try {
$apiInstance->getContactForSite($body);
} catch (Exception $e) {
echo 'Exception when calling PluginInstallationApi->getContactForSite: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
installAndActivatePlugin($body)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Yoast\MyYoastApiClient\Api\PluginInstallationApi(
// 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 \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto(); // \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto |
try {
$apiInstance->installAndActivatePlugin($body);
} catch (Exception $e) {
echo 'Exception when calling PluginInstallationApi->installAndActivatePlugin: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
revokeToken($body)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Yoast\MyYoastApiClient\Api\PluginInstallationApi(
// 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 \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto(); // \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto |
try {
$apiInstance->revokeToken($body);
} catch (Exception $e) {
echo 'Exception when calling PluginInstallationApi->revokeToken: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Yoast\MyYoastApiClient\Model\SiteInstallationActorDto |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]