Package uk.co.purebuy.commerce.businessobjects.importexport.playtrade.call

Examples of uk.co.purebuy.commerce.businessobjects.importexport.playtrade.call.DownloadReportCall


  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");
View Full Code Here

TOP

Related Classes of uk.co.purebuy.commerce.businessobjects.importexport.playtrade.call.DownloadReportCall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.