All URIs are relative to https://cargomart.ru.
Method | HTTP request | Description |
---|---|---|
apiV2ExpeditorCarrierContractSelfGet() | GET /api/v2/expeditor-carrier-contract/self | Получить список своих договоров с Экспедитором. |
expeditorCarrierContractUpdatesAdditionalAgreementPreview() | GET /api/v2/expeditor-contract-updates/additional-agreement-preview | Предпросмотр файла доп. соглашения |
apiV2ExpeditorCarrierContractSelfGet(): \MagDv\Cargomart\Dto\ExpeditorCarrierContractList
Получить список своих договоров с Экспедитором.
<?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\ExpeditorCarrierContractApi(
// 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
);
try {
$result = $apiInstance->apiV2ExpeditorCarrierContractSelfGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExpeditorCarrierContractApi->apiV2ExpeditorCarrierContractSelfGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\MagDv\Cargomart\Dto\ExpeditorCarrierContractList
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
expeditorCarrierContractUpdatesAdditionalAgreementPreview(): \SplFileObject
Предпросмотр файла доп. соглашения
<?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\ExpeditorCarrierContractApi(
// 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
);
try {
$result = $apiInstance->expeditorCarrierContractUpdatesAdditionalAgreementPreview();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExpeditorCarrierContractApi->expeditorCarrierContractUpdatesAdditionalAgreementPreview: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\SplFileObject
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/pdf
,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]