https://api.parcel.royalmail.com/api/v1
Method | HTTP request | Description |
---|---|---|
getVersionAsync | GET /version | Get API version details. |
\RoyalMail\ClickAndDrop\Rest\Api\Models\GetVersionResource getVersionAsync()
Get API version details.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new RoyalMail\ClickAndDrop\Rest\Api\VersionApi(
// 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 {
$result = $apiInstance->getVersionAsync();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VersionApi->getVersionAsync: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\RoyalMail\ClickAndDrop\Rest\Api\Models\GetVersionResource
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]