Fetch a report from your account with the information from fetchReportFileList.

PLEASE NOTE: This function returns the actual file with headers and NOT a XML structure. Make sure you upgrade your wrapper to the newest version to be enabled to use the PHP Wrapper for this function.

POST data information:
(Red information is mandatory), all POST data captions are case-sensitive.

surveyID Id of the Survey in Examinare.
reportID Id of the report from the function fetchReportFileList.



PHP Example (With our PHP Wrapper Library.
	/* Change the top information 
	according to your account details. */
	$api = new ExaminareAPIConnector($key["apicompany"],$key["apikey"],"");
	$api->Data(array('surveyID'=>"SURVEYID GOES HERE", "reportID" => 'REPORT ID FROM fetchReportFileList goes here.');
			$file =  $api->ExecuteRaw();
			$quoted = "FILE NAME GOES HERE . extension";
			header('Content-Description: File Transfer');
			header('Content-Type: application/octet-stream');
			header('Content-Disposition: attachment; filename=' . $quoted); 
			header('Content-Transfer-Encoding: binary');
			header('Connection: Keep-Alive');
			header('Expires: 0');
			header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
			header('Pragma: public');
			header('Content-Length: ' . strlen($file));			
			echo $file;
	/* In $reports_r you will now find all 
	returnable errors if any or the Report File ID's ready to use with fetchReportFile.*/