Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.44 KB

PluginDiagnosticsApi.md

File metadata and controls

71 lines (48 loc) · 2.44 KB

Wordlift\Client\PluginDiagnosticsApi

All URIs are relative to https://api.wordlift.io, except if the operation defines another base path.

Method HTTP request Description
updateDiagnosticPluginCollection() PUT /accounts/me/plugin/diagnostics/plugins-collection Update

updateDiagnosticPluginCollection()

updateDiagnosticPluginCollection($account, $diagnostic_plugin_request)

Update

Replace the list of the plugins for the current account with the one provided by the client

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: ApiKey
$config = Wordlift\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Wordlift\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new Wordlift\Client\Api\PluginDiagnosticsApi(
    // 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
);
$account = new \Wordlift\Client\Model\\Wordlift\Client\Model\Account(); // \Wordlift\Client\Model\Account
$diagnostic_plugin_request = array(new \Wordlift\Client\Model\DiagnosticPluginRequest()); // \Wordlift\Client\Model\DiagnosticPluginRequest[]

try {
    $apiInstance->updateDiagnosticPluginCollection($account, $diagnostic_plugin_request);
} catch (Exception $e) {
    echo 'Exception when calling PluginDiagnosticsApi->updateDiagnosticPluginCollection: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
account \Wordlift\Client\Model\Account
diagnostic_plugin_request \Wordlift\Client\Model\DiagnosticPluginRequest[]

Return type

void (empty response body)

Authorization

ApiKey

HTTP request headers

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

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