Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 2.06 KB

File metadata and controls

58 lines (38 loc) · 2.06 KB

Krak\MagentoApiClient\CheckoutAgreementsCheckoutAgreementsRepositoryV1Api

All URIs are relative to http://ce22.vg/index.php/rest/default

Method HTTP request Description
checkoutAgreementsCheckoutAgreementsRepositoryV1GetListGet GET /V1/carts/licence

checkoutAgreementsCheckoutAgreementsRepositoryV1GetListGet

\Krak\MagentoApiClient\Model\CheckoutAgreementsDataAgreementInterface[] checkoutAgreementsCheckoutAgreementsRepositoryV1GetListGet()

Lists active checkout agreements.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Krak\MagentoApiClient\Api\CheckoutAgreementsCheckoutAgreementsRepositoryV1Api(
    // 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
);

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

Parameters

This endpoint does not need any parameter.

Return type

\Krak\MagentoApiClient\Model\CheckoutAgreementsDataAgreementInterface[]

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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