src/Jaspersoft/Service/QueryService.php
public function executeQuery($sourceUri, $query)
	{
        $url = $this->service_url . '/queryExecutor' . $sourceUri;
        $data = $this->service->prepAndSend($url, array(200), 'POST', $query, true, 'text/plain', 'application/json');
        return json_decode($data, true);
    }
public function executeQuery($sourceUri, $query)
	{
        $url = $this->service_url . '/queryExecutor' . $sourceUri;
        $data = $this->service->prepAndSend($url, array(200), 'POST', $query, true, 'text/plain', 'application/json');
        return json_decode($data, true);
    }
public function executeQuery ( $ sourceUri , $ query ) { $ url = $ this -> service_url . '/queryExecutor' . $ sourceUri ; $ data = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'POST' , $ query , true , 'text/plain' , 'application/json' ) ; return json_decode ( $ data , true ) ; }
This function will execute a query on a data source or domain, and return the results of such query

@param string $sourceUri
@param string $query
@return array
This function will execute a query on a data source or domain and return the results of such query