public static void main(String[] args) throws PlayTradeApiCallException, IOException
{
final String REPORT_ID = "1234567";
System.out.println("Geting the report status of report with ID="+ REPORT_ID);
DownloadReportCall call = new DownloadReportCall(REPORT_ID);
//set the authentication
call.setUsername("user@email.com");
call.setPassword("password");
//make the call to get the report
DownloadCallResult result = call.callDownloadReport();
//write the report to a temporary file
File tempfile = File.createTempFile("playtrade_orders_"+REPORT_ID+"_", ".txt");
String resultbody = result.getResultBody();
FileUtils.writeStringToFile(tempfile, resultbody, "UTF-8");