Skip to content

Files

Latest commit

c303b47 · Feb 18, 2025

History

History
322 lines (221 loc) · 8.14 KB

EDDApi.md

File metadata and controls

322 lines (221 loc) · 8.14 KB

Yoast\MyYoastApiClient\EDDApi

All URIs are relative to https://my.yoast.test

Method HTTP request Description
handleDelete DELETE /edd-sl-api Sunset API for old EDD license checks
handleGet GET /edd-sl-api Sunset API for old EDD license checks
handleHead HEAD /edd-sl-api Sunset API for old EDD license checks
handleOptions OPTIONS /edd-sl-api Sunset API for old EDD license checks
handlePatch PATCH /edd-sl-api Sunset API for old EDD license checks
handlePost POST /edd-sl-api Sunset API for old EDD license checks
handlePut PUT /edd-sl-api Sunset API for old EDD license checks

handleDelete

handleDelete()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handleDelete();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handleDelete: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

handleGet

handleGet()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handleGet();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handleGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

handleHead

handleHead()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handleHead();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handleHead: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

handleOptions

handleOptions()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handleOptions();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handleOptions: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

handlePatch

handlePatch()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handlePatch();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handlePatch: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

handlePost

handlePost()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handlePost();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handlePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

handlePut

handlePut()

Sunset API for old EDD license checks

Here to still serve cacheable responses for old EDD license checks

Example

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

$apiInstance = new Yoast\MyYoastApiClient\Api\EDDApi(
    // 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 {
    $apiInstance->handlePut();
} catch (Exception $e) {
    echo 'Exception when calling EDDApi->handlePut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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