Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $startDate = strtotime("-1 week");
- $mivaUrl = 'http://iupatstyle.mivamerchant.net/mm5/merchant.mvc?Screen=firstOrderID&startDate=' . $startDate;
- $curlMiva = curl_init($mivaUrl);
- curl_setopt($curlMiva, CURLOPT_RETURNTRANSFER, true);
- $firstOrderId = curl_exec($curlMiva);
- curl_close($curlMiva);
- $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;
- $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;
- $ODCurl = curl_init($odUrl);
- curl_setopt($ODCurl, CURLOPT_RETURNTRANSFER, true);
- curl_exec($ODCurl);
- curl_close($ODCurl);
- $OHCurl = curl_init($ohUrl);
- curl_setopt($OHCurl, CURLOPT_RETURNTRANSFER, true);
- curl_exec($OHCurl);
- curl_close($OHCurl);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement