PHP code example of primitivesocial / nestio-api-wrapper

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

    

primitivesocial / nestio-api-wrapper example snippets


$client = new Listings($apiKey);

$output = $client->all();

$client = new Listings('APIKEY');

$output = $client->all();

$listingFromOutput = $output['items'][0];

$listing = $client->byId($listingFromOutput['id']);

$client = new Listings($apiKey);

$output = $client->residentialRentals();

$client = new Listings($apiKey);

$output = $client->residentialSales();

$client = new Listings($apiKey);

$output = $client->commercialRentals();

$client = new Listings($apiKey);

$output = $client->commercialSales();

$client = new Agents('APIKEY');

$output = $client->all();

$output = $client->all();

$this->assertNotNull($output);

$agentFromInitial = $output['items'][0];

$agent = $client->byId($agentFromInitial['id']);

$client = new Buildings('APIKEY');

$output = $client->all();

$client = new Neighborhoods('APIKEY');

$output = $client->all();

$client = new Neighborhoods('APIKEY');

$output = $client->city('Philadelphia')
                ->state('PA')
                ->all();

$client = new Clients('APIKEY');

$output = $client->id($nestioClientId)
                ->status($status)
                ->update();