PHP code example of lfrichter / omnivore
1. Go to this page and download the library: Download lfrichter/omnivore 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/ */
lfrichter / omnivore example snippets
$ticketList = Omnivore::tickets()->ticketList($locationId);
$ticketOpen = Omnivore::tickets()->ticketOpen($locationId, $content);
$ticketRetrieve = Omnivore::tickets()->ticketRetrieve($locationId, $ticketId);
$ticketVoid = Omnivore::tickets()->ticketVoid($locationId, $ticketId);
$ticketDiscountList = Omnivore::tickets()->ticketDiscountList($locationId, $ticketId);
$ticketDiscountApply = Omnivore::tickets()->ticketDiscountApply($locationId, $ticketId, $discount, $value);
$ticketDiscountRetrieve = Omnivore::tickets()->ticketDiscountRetrieve($locationId, $ticketId, $ticketDiscountId);
$ticketItemList = Omnivore::tickets()->ticketItemList($locationId, $ticketId);
$ticketItemAdd = Omnivore::tickets()->ticketItemAdd($locationId, $ticketId, $content);
$ticketItemRetrieve = Omnivore::tickets()->ticketItemRetrieve($locationId, $ticketId, $ticketItemId);
$ticketItemVoid = Omnivore::tickets()->ticketItemVoid($locationId, $ticketId, $ticketItemId)
$ticketItemModifierList = Omnivore::tickets()->ticketItemModifierList($locationId, $ticketId, $ticketItemId)
$ticketItemModifierRetrieve = Omnivore::tickets()->ticketItemModifierRetrieve($locationId, $ticketId, $ticketItemId, $ticketItemModifierId)
$ticketItemDiscountList = Omnivore::tickets()->ticketItemDiscountList($locationId, $ticketId, $ticketItemId)
$ticketItemDiscountRetrieve = Omnivore::tickets()->ticketItemDiscountRetrieve($locationId, $ticketId, $ticketItemId, $ticketItemDiscountId)
$paymentList = Omnivore::tickets()->paymentList($locationId, $ticketId)
$paymentRetrieve = Omnivore::tickets()->paymentRetrieve($locationId, $ticketId, $paymentId)
$paymentCardNotPresent = Omnivore::tickets()->paymentCardNotPresent($locationId, $ticketId, $content)
$paymentCardPresent = Omnivore::tickets()->paymentCardPresent($locationId, $ticketId, $content)
$payment3rdParty = Omnivore::tickets()->payment3rdParty($locationId, $ticketId, $content)
$paymentGiftCard = Omnivore::tickets()->paymentGiftCard($locationId, $ticketId, $content)
$paymentCash = Omnivore::tickets()->paymentCash($locationId, $ticketId, $content)
$tableList = Omnivore::tables()->tableList($locationId)
$tableRetrieve = Omnivore::tables()->tableRetrieve($locationId, $tableId)
$locations = Omnivore::general()->locationList();
$locationRetrieve = Omnivore::general()->locationRetrieve($locationId)
$employeeList = Omnivore::general()->employeeList($locationId)
$employeeRetrieve = Omnivore::general()->employeeRetrieve($locationId, $employeeId)
$orderTypeList = Omnivore::general()->orderTypeList($locationId)
$orderTypeRetrieve = Omnivore::general()->orderTypeRetrieve($locationId, $orderTypeId)
$tenderTypeList = Omnivore::general()->tenderTypeList($locationId)
$tenderTypeRetrieve = Omnivore::general()->tenderTypeRetrieve($locationId, $tenderTypeId)
$revenueCenterList = Omnivore::general()->revenueCenterList($locationId)
$revenueCenterRetrieve = Omnivore::general()->revenueCenterRetrieve($locationId, $revenueCenterId)
$discountList = Omnivore::general()->discountList($locationId)
$discountRetrieve = Omnivore::general()->discountRetrieve($locationId, $discountId)
$menu = Omnivore::general()->menu($locationId)
$categoryList = Omnivore::general()->categoryList($locationId)
$categoryRetrieve = Omnivore::general()->categoryRetrieve($locationId, $categoryId)
$menuItemList = Omnivore::general()->menuItemList($locationId)
$menuItemRetrieve = Omnivore::general()->menuItemRetrieve($locationId, $menuItemId)
$modifierList = Omnivore::general()->modifierList($locationId)
$modifierRetrieve = Omnivore::general()->modifierRetrieve($locationId, $modifierId)
$modifierGroupList = Omnivore::general()->modifierGroupList($locationId, $menuItemId)
$modifierGroupRetrieve = Omnivore::general()->modifierGroupRetrieve($locationId, $menuItemId, $modifierGroupId)