Skip to content

Latest commit

 

History

History
executable file
·
60 lines (43 loc) · 2.06 KB

ChangeApi.md

File metadata and controls

executable file
·
60 lines (43 loc) · 2.06 KB

ASMP\Client\ChangeApi

All URIs are relative to https://swagger.asmprotocol.org/v1

Method HTTP request Description
change POST /change Request a specific change for one or multiple components as previously checked in a /check request

change

\ASMP\Client\Model\ChangeResponse change($body)

Request a specific change for one or multiple components as previously checked in a /check request

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: asmp_auth
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new ASMP\Client\Api\ChangeApi(
    // 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
);
$body = new \ASMP\Client\Model\ChangeRequest(); // \ASMP\Client\Model\ChangeRequest | Request a specific change

try {
    $result = $apiInstance->change($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChangeApi->change: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \ASMP\Client\Model\ChangeRequest Request a specific change

Return type

\ASMP\Client\Model\ChangeResponse

Authorization

asmp_auth

HTTP request headers

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

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