PHP code example of pdir / propstack-api

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

    

pdir / propstack-api example snippets


// store keys in .env file or use credentials array
$credentials = [
    'apiKey' => 'PROPSTACK_API_KEY', 
];

$api = new Pdir\Propstack\Api();
or
$api = new Pdir\Propstack\Api($credentials);

// get all projects
$projects = $api->getProjects();

// get all saved queries
$savedQueries = $api->getSavedQueries();