Skip to content

Latest commit

 

History

History
133 lines (90 loc) · 4.96 KB

ExpeditorCarrierContractApi.md

File metadata and controls

133 lines (90 loc) · 4.96 KB

MagDv\Cargomart\ExpeditorCarrierContractApi

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()

apiV2ExpeditorCarrierContractSelfGet(): \MagDv\Cargomart\Dto\ExpeditorCarrierContractList

Получить список своих договоров с Экспедитором.

Example

<?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;
}

Parameters

This endpoint does not need any parameter.

Return type

\MagDv\Cargomart\Dto\ExpeditorCarrierContractList

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

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

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

expeditorCarrierContractUpdatesAdditionalAgreementPreview()

expeditorCarrierContractUpdatesAdditionalAgreementPreview(): \SplFileObject

Предпросмотр файла доп. соглашения

Example

<?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;
}

Parameters

This endpoint does not need any parameter.

Return type

\SplFileObject

Authorization

CookieTokenAuth, HeaderAuthorizationAuth

HTTP request headers

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

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