Skip to content

Latest commit

 

History

History
125 lines (86 loc) · 3.96 KB

ProductImageOptimizerApi.md

File metadata and controls

125 lines (86 loc) · 3.96 KB

Fastly\Api\ProductImageOptimizerApi

$apiInstance = new Fastly\Api\ProductImageOptimizerApi(
    // 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
);

Methods

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
disableProductImageOptimizer() DELETE /enabled-products/v1/image_optimizer/services/{service_id} Disable product
enableProductImageOptimizer() PUT /enabled-products/v1/image_optimizer/services/{service_id} Enable product
getProductImageOptimizer() GET /enabled-products/v1/image_optimizer/services/{service_id} Get product enablement status

disableProductImageOptimizer()

disableProductImageOptimizer($options) // Disable product

Disable the Image Optimizer product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.

try {
    $apiInstance->disableProductImageOptimizer($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductImageOptimizerApi->disableProductImageOptimizer: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

void (empty response body)

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

enableProductImageOptimizer()

enableProductImageOptimizer($options): \Fastly\Model\ImageOptimizerResponseBodyEnable // Enable product

Enable the Image Optimizer product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.

try {
    $result = $apiInstance->enableProductImageOptimizer($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductImageOptimizerApi->enableProductImageOptimizer: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

\Fastly\Model\ImageOptimizerResponseBodyEnable

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

getProductImageOptimizer()

getProductImageOptimizer($options): \Fastly\Model\ImageOptimizerResponseBodyEnable // Get product enablement status

Get the enablement status of the Image Optimizer product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.

try {
    $result = $apiInstance->getProductImageOptimizer($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductImageOptimizerApi->getProductImageOptimizer: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

\Fastly\Model\ImageOptimizerResponseBodyEnable

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