uctoplus/uctoplus-php-api

Production environment is located at `https://api.moje.uctoplus.sk/production/`. Sandbox environment is located at `https://api.moje.uctoplus.sk/sandbox/`. All communication with API is encoded in UTF-8. This REST API is based on Open API v3 standard. For help with implementation or access to the

3.2.0 2023-10-26 15:14 UTC

This package is auto-updated.

Last update: 2024-12-24 09:54:14 UTC


README

Production environment is located at https://api.moje.uctoplus.sk/production/.

Sandbox environment is located at https://api.moje.uctoplus.sk/sandbox/.

All communication with API is encoded in UTF-8. This REST API is based on Open API v3 standard. For help with implementation or access to the test environment please contact our helpdesk

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/uctoplus/uctoplus-php-api.git"
    }
  ],
  "require": {
    "uctoplus/uctoplus-php-api": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

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



// Configure API key authorization: api-key
$config = Uctoplus\API\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Uctoplus\API\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');


$apiInstance = new Uctoplus\API\Api\AddressListApi(
    // 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
);
$address = new \Uctoplus\API\Models\Address(); // \Uctoplus\API\Models\Address | Address
$except = array(new \Uctoplus\API\Models\\Uctoplus\API\Models\Except()); // \Uctoplus\API\Models\Except[] | Optional arguments for exclude data from response

try {
    $result = $apiInstance->addAddress($address, $except);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AddressListApi->addAddress: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://api.moje.uctoplus.sk/production

Models

Authorization

Authentication schemes defined for the API:

api-key

  • Type: API key
  • API key parameter name: api-key
  • Location: HTTP header

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

helpdesk@uctoplus.sk

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 3.2.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen