PHP code example of handsondigital / lib.php.admin.idplugger

1. Go to this page and download the library: Download handsondigital/lib.php.admin.idplugger 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/ */

    

handsondigital / lib.php.admin.idplugger example snippets





apiInstance = new IdpluggerPromotionAdmin\Api\ApiLogsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$path = 'path_example'; // string | Filter by request path (partial match)
$method = 'method_example'; // string | Filter by HTTP method (GET, POST, PUT, DELETE, etc.)
$status = 56; // int | Filter by HTTP status code
$username = 'username_example'; // string | Filter by API username
$from = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Filter by start date (YYYY-MM-DD)
$to = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Filter by end date (YYYY-MM-DD)
$page = 1; // int | Page number for pagination
$_per_page = 15; // int | Number of items per page

try {
    $result = $apiInstance->adminLogsGet($path, $method, $status, $username, $from, $to, $page, $_per_page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApiLogsApi->adminLogsGet: ', $e->getMessage(), PHP_EOL;
}

json
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/handsondigital/lib.php.admin.idplugger.git"
    }
  ],
  "