dibukeu / client-php
dibuk client php library
Installs: 253 655
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- composer/ca-bundle: ^1.1
Requires (Dev)
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2025-02-15 20:46:06 UTC
README
Installation
composer require dibukeu/client-php
Usage
Terms
- Seller - klient (predajca koncovému zákazníkovi, eshop)
- User - koncový zákazník (kupujúci z eshopu)
- Order - objednávka
Public Methods
$client = new DibukClient([ 'sellerId' => 'string', 'signature' => 'string', 'url' => 'string', 'version' => 'string']);
$client->setUser(['id' => 'int', 'email' => 'string', 'name' => 'string', 'surname' => 'string']);
- nastavenie údajov koncového zákazníka$client->setItem([ 'id' => 'id polozky z exportu / ISBN','order_id' => 'id objednavky zakaznika','payment_id' => 'int','price' => 'float','currency' => 'EUR|CZK','unique_id' => 'int - Unikátny identifikátor, napr. kombinácia order_id/item, alebo orders_items.id']);
- nastavenie údajov kupovanej položky$client->createLicense()
- kúpa knihy (buy v Dibuk)$client->sendByEmail($email)
- odoslanie eknihy emailom$client->getAllDownloadLinks()
- zoznam linkov na stiahnutie$client->getAttachmentsLinks()
- zoznam linkov na stiahnutie priloh k e-kniham- showAllDownloadLinks - netestované - zobrazí HTML page s linkami na stiahnutie (možnosť nastaviť vlastný template)
- exportItems - netestované - vrati zoznam položiek katalógu (eknihy a audioknihy)
- exportCatalog - netestované - vrati zoznam kategórii katalógu
- getReport - ??
Dibuk API Urls
Production
https://agregator.dibuk.eu/2_3/call.php
Sandbox
https://sandbox.dibuk.eu/agregator/2_3/call.php
Examples
//TODO