PHP code example of airlst / core-sdk
1. Go to this page and download the library: Download airlst/core-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
airlst / core-sdk example snippets
use AirLST\Core\Facades\AirLSTCoreApi;
$apiWorker = AirLSTCoreApi::guestlist();
// Retrieve a single guestlist
$singleGuestlist = $apiWorker->find($id);
// Create a new guestlist
$newCreatedGuestlist = $apiWorker->create($id, ['name' => 'New guestlist']);
// Update a existing guestlist
$updatedGuestlist = $apiWorker->create($id, ['name' => 'Updated guestlist']);
// Archive a guestlist
$archivedGuestlist = $apiWorker->archive($id);
// Restore a archived guestlist
$restoredGuestlist = $apiWorker->restore($id);
// Permanently delete a guestlist
$guestlistIsDelete = $apiWorker->delete($id);