qeep-pro / qeep-api-client
Client for QEEP-Pro API
v0.0.35
2020-11-05 12:27 UTC
Requires
- php: >=7.1
- doctrine/common: ^2.8
- jms/serializer: ^1.10
- symfony/property-access: ^4.0 | ^3.0
- symfony/serializer: ^4.0 | ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- php-mock/php-mock: 1.0
- php-mock/php-mock-prophecy: ^0.0.2
- phpspec/phpspec: ^4.2
This package is auto-updated.
Last update: 2021-01-05 12:45:42 UTC
README
QEEP Api Client
composer require qeep-pro/qeep-api-client
If you use Symfony, add this text in services.yaml:
# for auto writing as arguments in subscribers
QEEP\QEEPApiClient\ApiClient:
alias: qeep.api-client
qeep.api-client:
class: QEEP\QEEPApiClient\ApiClient
arguments:
$clientId: '%env(QEEP_CLIENT_ID)%'
$clientSecret: '%env(QEEP_SECRET_KEY_ID)%'
$crmUrl: '%env(QEEP_CRM_URL)%'
$salesChannel: '%env(QEEP_SALES_CHANNEL)%'
$imageUrl: '%env(QEEP_IMAGE_URL)%'
public: true
For APIv2 client:
# for auto writing as arguments in subscribers
QEEP\QEEPApiClient\V2\ApiClient:
alias: qeep.api-v2-client
qeep.api-v2-client:
class: QEEP\QEEPApiClient\V2\ApiClient
arguments:
$clientId: '%env(QEEP_CLIENT_ID)%'
$clientSecret: '%env(QEEP_SECRET_KEY_ID)%'
$crmUrl: '%env(QEEP_CRM_URL)%'
$salesChannel: '%env(QEEP_SALES_CHANNEL)%'
$imageUrl: '%env(QEEP_IMAGE_URL)%'
public: true