Skip to content

Latest commit

 

History

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

StatusApi.md

File metadata and controls

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

ASMP\Client\StatusApi

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

Method HTTP request Description
status GET /status/{id} Get the current status for a given request ID

status

\ASMP\Client\Model\StatusResponse status($id)

Get the current status for a given request ID

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\StatusApi(
    // 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
);
$id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | UUID of the change to get the status from

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

Parameters

Name Type Description Notes
id string UUID of the change to get the status from

Return type

\ASMP\Client\Model\StatusResponse

Authorization

asmp_auth

HTTP request headers

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

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