- PHP 8.2
- Composer
Require the package.
composer require airlst/sdk-php
First, you need to set the API Key
use AirLST\SdkPhp\CoreApi;
$core = new Core('api-key-here');
There are currently only 2 available methods
Important: This method requires the API key must be company bound!
$response = $core->event()->list();
$response->json(); // Get response data as array
$response = $core->event()->get('event-uuid-here');
$response->json(); // Get response data as array
$response = $core->guest('event-uuid-here')->validateCode('guest-code');
$response->json(); // Get response data as array
$response = $core->guest('event-uuid-here')->get('guest-code');
$response->json(); // Get response data as array
$response = $core->guest('event-uuid-here')->create([
'status' => 'confirmed',
'contact' => [
'first_name' => 'John',
'last_name' => 'Doe'
]
]);
$response->json(); // Get response data as array
$response = $core->guest('event-uuid-here')->update('guest-code', [
'status' => 'confirmed',
'contact' => [
'last_name' => 'Wick'
]
]);
$response->json(); // Get response data as array