| 1 |
lars |
1 |
<?php
|
|
|
2 |
$now = time();
|
|
|
3 |
var_dump($_GET);
|
|
|
4 |
echo 'Hallo';
|
|
|
5 |
if ( $_GET['start'] ) {
|
|
|
6 |
$start = $now - ( 3600 * 24 * $_GET['start']);
|
|
|
7 |
}
|
|
|
8 |
else
|
|
|
9 |
{
|
|
|
10 |
$start = $now - ( 3600 * 24 * 1 );
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
if ( $_GET['end'] ) {
|
|
|
14 |
$end = $now + ( 3600 * 24 * $_GET['end']);
|
|
|
15 |
}
|
|
|
16 |
else
|
|
|
17 |
{
|
|
|
18 |
$end = $now + ( 3600 * 12 * 1 );
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
require_once
|
|
|
22 |
'/web/apache/content-management/ebayphpat/EbatNs_ServiceProxy.php';
|
|
|
23 |
require_once '/web/apache/content-management/ebayphpat/EbatNs_Logger.php';
|
|
|
24 |
require_once
|
|
|
25 |
'/web/apache/content-management/ebayphpat/GetSellerTransactionsRequestType.php';
|
|
|
26 |
require_once
|
|
|
27 |
'/web/apache/content-management/ebayphpat/GetSellerTransactionsResponseType.php';
|
|
|
28 |
|
|
|
29 |
$session = new EbatNs_Session( $_GET['confDatei'] );
|
|
|
30 |
$cs = new EbatNs_ServiceProxy( $session );
|
|
|
31 |
$cs->attachLogger( new EbatNs_Logger(true) );
|
|
|
32 |
$req = new GetSellerTransactionsRequestType();
|
|
|
33 |
|
|
|
34 |
//$now = time();
|
|
|
35 |
//$start = $now - ( 3600 * 24 * 2 );
|
|
|
36 |
//$end = $now + ( 3600 * 12 * 1 );
|
|
|
37 |
|
|
|
38 |
// period 30 days
|
|
|
39 |
$req->ModTimeFrom = gmdate( 'Y-m-d H:i:s', $start );
|
|
|
40 |
$req->ModTimeTo = gmdate( 'Y-m-d H:i:s', $end );
|
|
|
41 |
|
|
|
42 |
$req->DetailLevel = $Facet_DetailLevelCodeType->ReturnAll;
|
|
|
43 |
|
|
|
44 |
//#type $res GetSellerTransactionsResponseType
|
|
|
45 |
$cs->GetSellerTransactions( $req );
|
|
|
46 |
?>
|