-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
26 lines (24 loc) · 835 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
try{
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors',1);
$proxy =new SoapClient('http://xyz.com/index.php/api/v2_soap?wsdl', array('trace'=>1,'connection_timeout'=>120));
$session = $proxy->login(array('username'=>$username,'apiKey'=>$password));
$sessionId = $session->result;
$filters = array();
$filters = array(
'created_at' => array(
'from' => '2015-04-21 02:13:00',
'to' => '2016-04-21 02:22:00'
)
);
$products = $proxy->salesOrderList(array("sessionId"=> $sessionId,"filters"=> $filters));
// $products = $proxy->customerCustomerList(array("sessionId"=> $sessionId,"filters"=> $filters));
// echo '<h1>Result</h1>';
echo '<pre>';
print_r($products);
// echo '</pre>';
}catch(Exception $e){
// echo '<h1>Error</h1>'; echo '<p>'. $e->getMessage().'</p>';
}
?>