src/Jaspersoft/Service/ImportExportService.php
public function fetchExport($id, $filename = 'export.zip')
    {
        $url = $this->service_url . '/export' . '/' . $id . '/' . $filename;
        $data = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/zip');
        return $data;
    }
public function fetchExport($id, $filename = 'export.zip')
    {
        $url = $this->service_url . '/export' . '/' . $id . '/' . $filename;
        $data = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/zip');
        return $data;
    }
public function fetchExport ( $ id , $ filename = 'export.zip' ) { $ url = $ this -> service_url . '/export' . '/' . $ id . '/' . $ filename ; $ data = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'GET' , null , true , 'application/json' , 'application/zip' ) ; return $ data ; }
Fetch the binary data of the report. This can only be called once before the server recycles the export request

The filename parameter determines the headers sent by the server describing the file.

@param int|string $id
@param string $filename
@return string Raw binary data
Fetch the binary data of the report . This can only be called once before the server recycles the export request