PHP code example of foodticket / jet-connect-client
1. Go to this page and download the library: Download foodticket/jet-connect-client 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/ */
foodticket / jet-connect-client example snippets
JET_CONNECT_API_KEY=
$jetConnectApi = new JetConnectApi();
$jetConnectApi->setItemAvailability(
Availability::UNAVAILABLE,
['itemReferences'],
$restaurantId,
$unavailableTill,
);
$jetConnectApi = new JetConnectApi();
$jetConnectApi->request()->get('https://api.flytplatform.com/');
$this->routes(function () {
// ...
Route::jetConnectWebhooks();
});