All URIs are relative to https://cargomart.ru.
Method | HTTP request | Description |
---|---|---|
apiV2ExpeditorProposalIdCarrierAskGet() | GET /api/v2/expeditor-proposal/{id}/carrier-ask | Список ставок от перевозчиков для Экспедитора. |
apiV2ExpeditorProposalIdCarrierAskGet($id): \MagDv\Cargomart\Dto\ProposalCarrierAsksResponse
Список ставок от перевозчиков для Экспедитора.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new MagDv\Cargomart\Api\ExpeditorProposalCarrierAskApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | Идентификатор заявки Экспедитора.
try {
$result = $apiInstance->apiV2ExpeditorProposalIdCarrierAskGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExpeditorProposalCarrierAskApi->apiV2ExpeditorProposalIdCarrierAskGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Идентификатор заявки Экспедитора. |
\MagDv\Cargomart\Dto\ProposalCarrierAsksResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]