User data

Get user data

userinfo - Return info about an authenticated user.

Description

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

Parameters

@param (bool) $encode - Encode response into JSON

Examples

Get JSON response:

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

Get PHP response:

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