- Integrates Helix API to Symfony framework
- Install bundle:
composer require idapgroup/helix-api-bundle
- Add these lines to
.env
file
#Helix
HELIX_API_URL='https://sandbox-api.helix.q2.com'
HELIX_API_KEY='example1'
HELIX_API_SECRET='example1'
HELIX_API_DEFAULT_CULTURE=en-US
public function getProgram(HelixApiService $service): mixed
{
return $service->helixGetRequest('program/get');
}
public function createCustomer(HelixApiService $service, array $data): mixed
{
$data = [
'firstName' => 'John',
'lastName' => 'Doe',
//... Fill data according Helix documentation
];
return $service->helixPostRequest('customer/create', $data);
}