PHP code example of morscate / uber-eats

1. Go to this page and download the library: Download morscate/uber-eats 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/ */

    

morscate / uber-eats example snippets


UBER_EATS_CLIENT_ID=
UBER_EATS_CLIENT_SECRET=

$uberEatsApi = new UberEatsApi();
$uberEatsApi->activateIntegration(
        storeId: "{store_id}",
        isOrderManager: true
    );

$uberEatsApi = new UberEatsApi();
$uberEatsApi->getOrders("{store_id}");

$uberEatsApi = new UberEatsApi();
$uberEatsApi->request()->get('https://api.uber.com/v1/delivery/store/{$storeId}/orders');

$this->routes(function () {
    // ...
    Route::uberEatsWebhooks();
});