Site data

Get site data

site - Return site data by site id.

Description

mixed site ( int $id , bool $encode );
This method is type of GET and will not receive any POST parameters.

Parameters

@param (int) $id - Site id (required)
@param (bool) $encode - Encode response into JSON

Examples

Get JSON response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $site_id = 1080;
    print_r($api->site($site_id));
?>

Get PHP response:

<?php 
    require_once('lib/api.php');
    $api = new BridApi();
    $site_id = 1080;
    print_r($api->site($site_id, true));
?>