PHP code example of foodticket / deliveroo
1. Go to this page and download the library: Download foodticket/deliveroo 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 / deliveroo example snippets
DELIVEROO_BASE_URL=
DELIVEROO_AUTH_URL=
DELIVEROO_CLIENT_ID=
DELIVEROO_CLIENT_SECRET=
DELIVEROO_WEBHOOK_SECRET=
$deliverooApi = new DeliverooApi();
$deliverooApi->getOrders($brandId, $restaurantId);
$deliverooApi = new DeliverooApi();
$deliverooApi->request()->get('https://api.developers.deliveroo.com/order/v1/integrator/brands/{$brand_id}/sites-config');
$this->routes(function () {
// ...
Route::deliverooWebhooks();
});