public function getInfo($only = null)
    {
        if (empty($only)) {
            $uri = 'asterisk/info';
        } else {
            $uri = "asterisk/info?only=$only";
        }
        $response = $this->client->getEndpoint()->get($uri);

        return new AsteriskInfo(\GuzzleHttp\json_decode($response->getBody()));
    }
public function getInfo($only = null)
    {
        if (empty($only)) {
            $uri = 'asterisk/info';
        } else {
            $uri = "asterisk/info?only=$only";
        }
        $response = $this->client->getEndpoint()->get($uri);

        return new AsteriskInfo(\GuzzleHttp\json_decode($response->getBody()));
    }
public function getInfo ( $ only = null ) { if ( empty ( $ only ) ) { $ uri = 'asterisk/info' ; } else { $ uri = "asterisk/info?only=$only" ; } $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; return new AsteriskInfo ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) ) ; }
Gets Asterisk system information.

@param string $only Filter information returned.  Allows comma separated values.  Allowed values: build, system, config, status.
@return AsteriskInfo
Gets Asterisk system information .