PHP code example of spojenet / realpad-takeout

1. Go to this page and download the library: Download spojenet/realpad-takeout 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/ */

    

spojenet / realpad-takeout example snippets




// You can also specifi the credentials in constructor call:
$client = new \SpojeNet\Realpad\ApiClient('login','password);
$responseCode = $client->doCurlRequest($client->baseEndpoint . 'ws/v10/list-resources', 'POST');
$dataObtained = $client->lastCurlResponse;


$client = new \SpojeNet\Realpad\ApiClient();
$resources = $client->listResources();

$client = new \SpojeNet\Realpad\ApiClient();
$resources = $client->getResource(RESOURCE_UID);

$client = new \SpojeNet\Realpad\ApiClient();
$defects = $client->listDefects('DEAL_DEFECTS');
print_r($defects);