PHP code example of planviewer / api-client-php

1. Go to this page and download the library: Download planviewer/api-client-php 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/ */

    

planviewer / api-client-php example snippets


$ composer quire": {
        "planviewer/api-client-php": "^1.0.0"
    }
}

return [
    'api-key' => '86c****7b',
    'api-secret' => '3783******6b3ab4c87fef3ffc*****bb058a72c****cbef2d',
];

use Planviewer/Planviewer;

$planviewer = new Planviewer($config);

/** Access Maps API  */
$planviewer->mapsApi>listViewers();

/** Access Data API  */
$planviewer->dataApi->getdataList();

/** Access Product API  */
$planviewer->productApi->getProducts();