PHP code example of yaroslawww / laravel-naviga-ad
1. Go to this page and download the library: Download yaroslawww/laravel-naviga-ad 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/ */
yaroslawww / laravel-naviga-ad example snippets
$response = NavigaAd::pendingRequest()->get("campaigns/{$id}");
if ($response->status() == 400) {
throw new Exception('Campaign deleted');
}
$result = $response->json();
/** @var PaginatedResponse $response */
$response = NavigaAd::paginatedRequest('book/ordertypes', perPage: 16, currentPage: 3)->retrieve();
// or
$response = NavigaAd::paginatedRequest('book/orders', 5)->setCurrentPage(2)->retrieve(queryData: [
'LastModDate' => '2023-07-09T07:14:14.433Z'
]);
$response->entities();
$response->currentPage();
$response->totalPages();
$response->countEntities();
$response->totalEntities();