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
Installs: 3 818
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-10-24 09:32:08 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
- AddAddress200Response
- AddInvoice200Response
- AddInvoiceRequest
- Address
- Attribute
- Country
- CreditNoteItem
- CreditNoteRequest
- CreditNoteRequestItemsInner
- CreditNoteType
- Currency
- DeliveryAddress
- DeliveryType
- Element
- ElementType
- Except
- File
- FileMimeTypes
- FileRequest
- GetInvoiceCounter200Response
- Invoice
- InvoiceCounter
- InvoiceCurrency2
- InvoiceItem
- InvoiceRequest
- InvoiceRequestDeliveryAddress
- InvoiceRequestInvoiceNumber
- InvoiceRequestItemsInner
- InvoiceRequestPayment
- InvoiceRequestPaymentType
- InvoiceRequestReciever
- InvoiceRequestTagsInner
- InvoiceTemplate
- InvoiceType
- Issuer
- Language
- LinkedInvoiceItem
- Logo
- Page
- Payment
- PaymentType
- Response
- ResponseContentERROR
- SendRequest
- Signature
- Summary
- SummaryTaxesInner
- Tag
- TagType
- Theme
- UploadFile200Response
- UploadFileRequest
- UploadMultipageFileRequest
- UploadSingleFileRequest
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
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