padam87/billingo-bundle

API wrapper for https://www.billingo.hu

Installs: 1 536

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.12.0 2024-05-06 15:01 UTC

README

composer require padam87/billingo-bundle

App kernel: new Padam87\BillingoBundle\Padam87BillingoBundle(),

Configuration:

padam87_billingo:
    authentication:
        public_key: your_public_key
        private_key: your_private_key

Usage:

$client = $this->get('padam87_billingo.api')->request('POST', 'clients', [/* ... */]);

In the example above $client will contain the complete response from the API. The response data should be accessed by $client['data'].

Configuration reference:

padam87_billingo:
    authentication:       # Required
        public_key:           ~ # Required
        private_key:          ~ # Required
        lifetime:             120
    api:
        version:              2
        base_url:             'https://www.billingo.hu/api/'