nattreid / csas-api
Csas (Ceska Sporitelna) API for Nette Framework
dev-master / 1.6.x-dev
2018-09-17 11:33 UTC
Requires
- php: >= 7.1
- guzzlehttp/guzzle: ~6.2
- nette/application: ~2.4
- nette/di: ~2.4
- nette/http: ~2.4
Requires (Dev)
- nattreid/form: ~1.0
- nattreid/web-manager: ~1.0
- nette/tester: ~1.7
- tracy/tracy: ~2.4
This package is auto-updated.
Last update: 2024-09-09 02:03:39 UTC
README
Nastavení v config.neon
extensions: csas: NAttreid\CsasApi\DI\CsasExtension csas: apiKey: 'apiKey' clientId: 'clientId' clientSecret: 'clientSecret' debug: true # default false
Použití
/** @var NAttreid\CsasApi\ICsasClientFactory @inject */ public $csasFactory; public function createComponentCsas(): CsasClient { return $this->csasClientFactory->create(); } public function process(): void { $cards = $this['csas']->cards(); }
Do šablony přidáme komponentu kvůli tokenu
{control csas}