Advertisement
Guest User

blaahhrrr

a guest
Oct 23rd, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. $startDate = strtotime("-1 week");
  3. $mivaUrl = 'http://iupatstyle.mivamerchant.net/mm5/merchant.mvc?Screen=firstOrderID&startDate=' . $startDate;
  4.  
  5. $curlMiva = curl_init($mivaUrl);
  6. curl_setopt($curlMiva, CURLOPT_RETURNTRANSFER, true);
  7. $firstOrderId = curl_exec($curlMiva);
  8. curl_close($curlMiva);
  9.  
  10.  
  11. $odUrl = 'http://iupatstyle.mivamerchant.net/mm5/json.mvc?Session_Type=admin&UserName=batchReportUser&Password=thNJpdvx43BL&Store_Code=IS&Function=Module&Module_Code=dynamicorderexport&Module_Function=Export_OrderBatchReport&ReportModule=templatebatchreports&Report_Code=coreXpand-import&First_Order_ID=' . $firstOrderId;
  12. $ohUrl = 'http://iupatstyle.mivamerchant.net/mm5/json.mvc?Session_Type=admin&UserName=batchReportUser&Password=thNJpdvx43BL&Store_Code=IS&Function=Module&Module_Code=dynamicorderexport&Module_Function=Export_OrderBatchReport&ReportModule=templatebatchreports&Report_Code=dpfieldspayment&First_Order_ID=' . $firstOrderId;
  13.  
  14. $ODCurl = curl_init($odUrl);
  15. curl_setopt($ODCurl, CURLOPT_RETURNTRANSFER, true);
  16. curl_exec($ODCurl);
  17. curl_close($ODCurl);
  18.  
  19. $OHCurl = curl_init($ohUrl);
  20. curl_setopt($OHCurl, CURLOPT_RETURNTRANSFER, true);
  21. curl_exec($OHCurl);
  22. curl_close($OHCurl);
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement