REST API je rozšířený standard programového rozhranní pro integraci aplikací.
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: authToken
$config = BeLenka\Helios\Invoices\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new BeLenka\Helios\Invoices\Api\FakturyPijatApi(
// 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
);
$db_name = HeO3_Beta; // string | Název databáze.
$period = 56; // int | Systémový parametr - Účetní období.
$filter = 'filter_example'; // string | Podmínka pro výběr dat.
$orderby = 'orderby_example'; // string | Seznam sloupců, podle kterých chci třídit.
$top = 56; // int | Stránkování - počet vrácených záznamů (pokud je jich tolik k dispozici, jinak méně).
$skip = 56; // int | Stránkování - počet přeskočených záznamů.
try {
$result = $apiInstance->invoicesReceivedDbNameGet($db_name, $period, $filter, $orderby, $top, $skip);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakturyPijatApi->invoicesReceivedDbNameGet: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to /api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
FakturyPijatApi | invoicesReceivedDbNameGet | GET /invoices/received/{dbName} | Seznam faktur přijatých |
FakturyPijatApi | invoicesReceivedDbNameInvoiceIdDelete | DELETE /invoices/received/{dbName}/{invoiceId} | Smazání faktury přijaté |
FakturyPijatApi | invoicesReceivedDbNameInvoiceIdGet | GET /invoices/received/{dbName}/{invoiceId} | Faktura přijatá dle ID |
FakturyPijatApi | invoicesReceivedDbNameInvoiceIdItemsGet | GET /invoices/received/{dbName}/{invoiceId}/items | Seznam položek faktury přijaté |
FakturyPijatApi | invoicesReceivedDbNamePost | POST /invoices/received/{dbName} | Vytvoření nové faktury přijaté |
FakturyVydanApi | invoicesIssuedDbNameGet | GET /invoices/issued/{dbName} | Seznam faktur vydaných |
FakturyVydanApi | invoicesIssuedDbNameInvoiceIdDelete | DELETE /invoices/issued/{dbName}/{invoiceId} | Smazání faktury vydané |
FakturyVydanApi | invoicesIssuedDbNameInvoiceIdGet | GET /invoices/issued/{dbName}/{invoiceId} | Faktura vydaná dle ID |
FakturyVydanApi | invoicesIssuedDbNameInvoiceIdItemsGet | GET /invoices/issued/{dbName}/{invoiceId}/items | Seznam položek faktury vydané |
FakturyVydanApi | invoicesIssuedDbNamePost | POST /invoices/issued/{dbName} | Vytvoření nové faktury vydané |
- ErrorResult
- IssuedInvoiceBodyPOST
- IssuedInvoiceBodyPOSTCustomer
- IssuedInvoiceItemsResult
- IssuedInvoicePOSTResult
- IssuedInvoicePOSTResultCustomer
- IssuedInvoiceResult
- IssuedInvoicesResult
- IssuedInvoicesResultInvoicesInner
- IssuedInvoicesResultInvoicesInnerCustomer
- ReceivedInvoiceBodyPOST
- ReceivedInvoiceBodyPOSTItemsInner
- ReceivedInvoiceBodyPOSTPaymentsInner
- ReceivedInvoiceBodyPOSTSupplier
- ReceivedInvoiceBodyPOSTVatRecapitulationInner
- ReceivedInvoiceItemsResult
- ReceivedInvoicePOSTResult
- ReceivedInvoicePOSTResultItemsInner
- ReceivedInvoicePOSTResultPaymentsInner
- ReceivedInvoicePOSTResultSupplier
- ReceivedInvoiceResult
- ReceivedInvoicesResult
- ReceivedInvoicesResultInvoicesInner
- ReceivedInvoicesResultInvoicesInnerItemsInner
- ReceivedInvoicesResultInvoicesInnerPaymentsInner
- ReceivedInvoicesResultInvoicesInnerSupplier
- ReceivedInvoicesResultInvoicesInnerSupplierBankAccount
- ReceivedInvoicesResultInvoicesInnerVatRecapitulationInner
Authentication schemes defined for the API:
- Type: Bearer authentication
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.2.33
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen