Php 易趣API-抓取用户产品和;获取单个产品的详细信息

Php 易趣API-抓取用户产品和;获取单个产品的详细信息,php,ebay-api,Php,Ebay Api,我已经搜索过了,但是没有太多关于使用ebay API和php输出的文档,除非你对这方面有深入的了解 我已经找到了一个例子来输出某个用户的产品,但它并不完美 我还想知道如何输出单个产品的特定元素,如标题、说明、价格 下面是我必须得到的产品,因此任何改进都将是伟大的,任何展示单个产品的方向也将是伟大的 非常感谢 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/l

我已经搜索过了,但是没有太多关于使用ebay API和php输出的文档,除非你对这方面有深入的了解

我已经找到了一个例子来输出某个用户的产品,但它并不完美

我还想知道如何输出单个产品的特定元素,如标题、说明、价格

下面是我必须得到的产品,因此任何改进都将是伟大的,任何展示单个产品的方向也将是伟大的

非常感谢

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<?php

require_once('DisplayUtils.php');  // functions to aid with display of information

//error_reporting(E_ALL);  // turn on all errors, warnings and notices for easier debugging
$sellerID='SellerIdHere';
$pageResults='';
if(isset($_POST['SellerID']))
{
  $s_endpoint = 'http://open.api.ebay.com/shopping';  // Shopping
  $f_endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1';  // Finding
  $responseEncoding = 'XML';   // Format of the response
  $s_version = '667';   // Shopping API version number
  $f_version = '1.4.0';   // Finding API version number
  $appID   = 'AppIdHere'; //replace this with your AppID

  $debug   = true;
  $debug = (boolean) $_POST['Debug'];

  $sellerID  = urlencode (utf8_encode($_POST['SellerID']));   // cleanse input
  $globalID    = urlencode (utf8_encode($_POST['GlobalID']));

  $sitearray = array(
    'EBAY-US' => '0',
    'EBAY-ENCA' => '2',
    'EBAY-GB' => '3',
    'EBAY-AU' => '15',
    'EBAY-DE' => '77',
  );


  $siteID = $sitearray[$globalID];

  $pageResults = '';
  $pageResults .= getUserProfileResultsAsHTML($sellerID);
  $pageResults .= getFindItemsAdvancedResultsAsHTML($sellerID);

} // if


function getUserProfileResultsAsHTML($sellerID) {
  global $siteID, $s_endpoint, $responseEncoding, $s_version, $appID, $debug;
  $results = '';

  $apicall = "$s_endpoint?callname=GetUserProfile"
       . "&version=$s_version"
       . "&siteid=$siteID"
       . "&appid=$appID"
       . "&UserID=lordbrowns"

       . "&IncludeSelector=Details,FeedbackHistory"   // need Details to get MyWorld info
       . "&responseencoding=$responseEncoding";

  if ($debug) { print "<br />GetUserProfile call = <blockquote>$apicall </blockquote>"; }

  // Load the call and capture the document returned by the Shopping API
  $resp = simplexml_load_file($apicall);

  if ($resp) {
    if (!empty($resp->User->MyWorldLargeImage)) {
      $myWorldImgURL = $resp->User->MyWorldLargeImage;
    } else {
      $myWorldImgURL = 'http://pics.ebaystatic.com/aw/pics/community/myWorld/imgBuddyBig1.gif';
    }
    $results .= "<table><tr>";
    $results .= "<td><a href=\"" . $resp->User->MyWorldURL . "\"><img src=\""
          . $myWorldImgURL . "\"></a></td>";
    $results .= "<td>Seller <br /> ";
    $results .= "Feedback score : " . $resp->User->FeedbackScore . "<br />";
    $posCount = $resp->FeedbackHistory->UniquePositiveFeedbackCount;
    $negCount = $resp->FeedbackHistory->UniqueNegativeFeedbackCount;
    $posFeedBackPct = sprintf("%01.1f", (100 * ($posCount / ($posCount + $negCount))));
    $results .= "Positive feedback : $posFeedBackPct%<br />";
    $regDate = substr($resp->User->RegistrationDate, 0, 10);
    $results .= "Registration date : $regDate<br />";

    $results .= "</tr></table>";

  } else {
    $results = "<h3>No user profile for seller $sellerID";
  }
  return $results;
} // function



function getFindItemsAdvancedResultsAsHTML($sellerID) {
  global $globalID, $f_endpoint, $responseEncoding, $f_version, $appID, $debug;

  $maxEntries = 3;

  $itemType  = urlencode (utf8_encode($_POST['ItemType']));
  $itemSort  = urlencode (utf8_encode($_POST['ItemSort']));

  $results = '';   // local to this function
  // Construct the FindItems call
  $apicall = "$f_endpoint?OPERATION-NAME=findItemsAdvanced"
       . "&version=$f_version"
       . "&GLOBAL-ID=$globalID"
       . "&SECURITY-APPNAME=$appID"   // replace this with your AppID
       . "&RESPONSE-DATA-FORMAT=$responseEncoding"
       . "&itemFilter(0).name=Seller"
       . "&itemFilter(0).value=SellerIdHEre"
       . "&itemFilter(1).name=ListingType"
       . "&itemFilter(1).value=$itemType"
       . "&paginationInput.entriesPerPage=$maxEntries"
       . "&sortOrder=$itemSort"
       . "&affliate.networkId=9"        // fill in your information in next 3 lines
       . "&affliate.trackingId=123456789"
       . "&affliate.customId=456";

  if ($debug) { print "<br />findItemsAdvanced call = <blockquote>$apicall </blockquote>"; }

  // Load the call and capture the document returned by the Finding API
  $resp = simplexml_load_file($apicall);

  // Check to see if the response was loaded, else print an error
if ($resp->ack == "Success") {


    // If the response was loaded, parse it and build links
    foreach($resp->searchResult->item as $item) {
      if ($item->galleryURL) {
        $picURL = $item->galleryURL;
      } else {
        $picURL = "http://pics.ebaystatic.com/aw/pics/express/icons/iconPlaceholder_96x96.gif";
      }
      $link  = $item->viewItemURL;
      $title = $item->title;
      $itemsID = $item->itemId;
      $price = sprintf("%01.2f", $item->sellingStatus->convertedCurrentPrice);
      $ship  = sprintf("%01.2f", $item->shippingInfo->shippingServiceCost);
      $total = sprintf("%01.2f", ((float)$item->sellingStatus->convertedCurrentPrice
                    + (float)$item->shippingInfo->shippingServiceCost));

        // Determine currency to display - so far only seen cases where priceCurr = shipCurr, but may be others
        $priceCurr = (string) $item->sellingStatus->convertedCurrentPrice['currencyId'];
        $shipCurr  = (string) $item->shippingInfo->shippingServiceCost['currencyId'];
        if ($priceCurr == $shipCurr) {
          $curr = $priceCurr;
        } else {
          $curr = "$priceCurr / $shipCurr";  // potential case where price/ship currencies differ
        }

        $timeLeft = getPrettyTimeFromEbayTime($item->sellingStatus->timeLeft);
        $endTime = strtotime($item->listingInfo->endTime);   // returns Epoch seconds
        $endTime = $item->listingInfo->endTime;

      $results .= " <img src=\"$picURL\"> ";
    }

  }
  // If there was no search response, print an error
  else {
    $results = "<h3>No items found matching the $itemType type.";
  }  // if resp

  return $results;

}  // function


?>



<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>GetUserProfile</title>
<script src="./js/jQuery.js"></script>
<script src="./js/jQueryUI/ui.tablesorter.js"></script>

<script>
  $(document).ready(function() {
    $("table").tablesorter({
      sortList:[[7,0],[4,0]],    // upon screen load, sort by col 7, 4 ascending (0)
      debug: false,        // if true, useful to debug Tablesorter issues
      headers: {
        0: { sorter: false },  // col 0 = first = left most column - no sorting
        5: { sorter: false },
        6: { sorter: false },
        7: { sorter: 'text'}   // specify text sorter, otherwise mistakenly takes shortDate parser
      }
    });
  });
</script>

</head>

<body>


<link rel="stylesheet" href="./css/flora.all.css" type="text/css" media="screen" title="Flora (Default)">

<form action="index.php" method="post">
<table cellpadding="2" border="0">
  <tr>
    <th>SellerID</th>
    <th>Site</th>
    <th>ItemType</th>
    <th>ItemSort</th>
    <th>Debug</th>
  </tr>
  <tr>
    <td><input type="text" name="SellerID" value=""></td>
    <td>
      <select name="GlobalID">
        <option value="EBAY-AU">Australia - EBAY-AU (15) - AUD</option>
        <option value="EBAY-ENCA">Canada (English) - EBAY-ENCA (2) - CAD</option>
        <option value="EBAY-DE">Germany - EBAY-DE (77) - EUR</option>
        <option value="EBAY-GB">United Kingdom - EBAY-GB (3) - GBP</option>
        <option selected value="EBAY-US">United States - EBAY-US (0) - USD</option>
      </select>
    </td>
    <td>
      <select name="ItemType">
        <option selected value="All">All Item Types</option>
        <option value="Auction">Auction Items Only</option>
        <option value="FixedPriced">Fixed Priced Item Only</option>
        <option value="StoreInventory">Store Inventory Only</option>
      </select>
    </td>
    <td>
      <select name="ItemSort">
        <option value="BidCountFewest">Bid Count (fewest bids first) [Applies to Auction Items Only]</option>
        <option selected value="EndTimeSoonest">End Time (soonest first)</option>
        <option value="PricePlusShippingLowest">Price + Shipping (lowest first)</option>
        <option value="CurrentPriceHighest">Current Price Highest</option>
      </select>
    </td>
    <td>
    <select name="Debug">
      <option value="1">true</option>
      <option selected value="0">false</option>
      </select>
    </td>

  </tr>
  <tr>
    <td colspan="4" align="center"><INPUT type="submit" name="submit" value="Search"></td>
  </tr>
</table>
</form>

<?php
  print $pageResults;

?>

</body>
</html>

'0',
'EBAY-ENCA'=>'2',
'EBAY-GB'=>'3',
'EBAY-AU'=>'15',
'EBAY-DE'=>'77',
);
$siteID=$sitearray[$globalID];
$pageResults='';
$pageResults.=getUserProfileResultsAsHTML($sellerID);
$pageResults.=GetFindItemsAdvancedResultsHTML($sellerID);
}//如果
函数getUserProfileResultsAsHTML($sellerID){
全局$siteID、$s_endpoint、$responseEncoding、$s_version、$appID、$debug;
$results='';
$apicall=“$s_端点?callname=GetUserProfile”
.“&version=$s\u version”
.“&siteid=$siteid”
.“&appid=$appid”
.“&UserID=lordbrowns”
.“&IncludeSelector=Details,FeedbackHistory”//需要获取MyWorld信息的详细信息
.“&responseencoding=$responseencoding”;
如果($debug){print“
GetUserProfile调用=$apicall”;} //加载调用并捕获购物API返回的文档 $resp=simplexml\u加载文件($apicall); 若有($resp){ 如果(!empty($resp->User->MyWorldLargeImage)){ $myWorldImgURL=$resp->User->MyWorldLargeImage; }否则{ $myWorldImgURL='1!'http://pics.ebaystatic.com/aw/pics/community/myWorld/imgBuddyBig1.gif'; } $results.=”; $results.=”; $results.=“卖方
”; $results.=“反馈分数:”.$resp->User->FeedbackScore.“
”; $posCount=$resp->FeedbackHistory->UniquePositiveFeedbackCount; $negCount=$resp->FeedbackHistory->UniqueNegativeFeedbackCount; $posFeedBackPct=sprintf(“%01.1f”),(100*($posCount/($posCount+$NEGCUNT)); $results.=“积极反馈:$posFeedBackPct%
”; $regDate=substr($resp->User->RegistrationDate,0,10); $results.=“注册日期:$regDate
”; $results.=”; }否则{ $results=“没有卖方$sellerID的用户配置文件”; } 返回$results; }//函数 函数getFindItemAdvancedResultsHTML($sellerID){ 全局$globalID、$f_endpoint、$responseEncoding、$f_version、$appID、$debug; $maxEntries=3; $itemType=urlencode(utf8_编码($_POST['itemType']); $itemSort=urlencode(utf8_编码($_POST['itemSort']); $results='';//此函数的本地 //构造FindItems调用 $apicall=“$f_端点?OPERATION-NAME=findItemAdvanced” .“&版本=$f_版本” .“&GLOBAL-ID=$globalID” .“&SECURITY-APPNAME=$appID”//将其替换为您的appID .“&RESPONSE-DATA-FORMAT=$responseEncoding” .“&itemFilter(0)。名称=卖方” .“&itemFilter(0)。值=SellerIdHEre” .“&itemFilter(1)。名称=ListingType” “&itemFilter(1)。值=$itemType” .“&paginationInput.EntriesPage=$maxEntries” .“&sortOrder=$itemSort” .“&affliate.networkId=9”//在接下来的3行中填写您的信息 .“&affliate.trackingId=123456789” .“&affliate.customId=456”; 如果($debug){print“
FindItemAdvanced调用=$apicall”;} //加载调用并捕获由查找API返回的文档 $resp=simplexml\u加载文件($apicall); //检查是否加载了响应,否则打印错误 如果($resp->ack==“成功”){ //如果已加载响应,则解析它并构建链接 foreach($resp->searchResult->item as$item){ 如果($item->galleryURL){ $picURL=$item->galleryURL; }否则{ $picURL=”http://pics.ebaystatic.com/aw/pics/express/icons/iconPlaceholder_96x96.gif"; } $link=$item->viewItemURL; $title=$item->title; $itemsID=$item->itemId; $price=sprintf(“%01.2f”,$item->sellingStatus->convertedCurrentPrice); $ship=sprintf(“%01.2f”,$item->shippingInfo->shippingServiceCost); $total=sprintf(“%01.2f”)((浮动)$item->sellingStatus->convertedCurrentPrice +(浮动)$item->shippingInfo->shippingServiceCost); //确定要显示的货币-到目前为止,仅在priceCurr=shipCurr的情况下出现,但可能是其他情况 $priceCurr=(字符串)$item->sellingStatus->convertedCurrentPrice['currencyId']; $shipCurr=(字符串)$item->shippingInfo->shippingServiceCost['currencyId']; 如果($priceCurr==$shipCurr){ $curr=$priceCurr; }否则{ $curr=“$priceCurr/$shipCurr”//价格/装运货币不同的潜在情况 } $timeLeft=GetPrettyTimeBromeBayTime($item->sellingStatus->timeLeft); $endTime=strottime($item->listingInfo->endTime);//返回历元秒数 $endTime=$item->listingInfo->endTime; $results.=”; } } //如果没有搜索响应,请打印错误 否则{ $results=“未找到与$itemType类型匹配的项目。”; }//如果响应 返回$results; }//函数 ?> GetUserProfile $(文档).ready(函数(){ $(“表”).tablesorter({ 排序列表:[[7,0],[4,0]],//在屏幕加载时,按列7排序,4升序(0) debug:false,//如果为true,则有助于调试表排序器问题 标题:{ 0:{sorter:false},//列0=first=最左边的列-无排序 5:{分拣机:错误}, 6:{分拣机:错误}, 7:{sorter:'text'}//指定文本分类器,否则会错误地使用shortDate解析器 } }); }); 塞勒里德 场地 项目类型 项目排序 调试 澳大利亚-易趣-澳大利亚(15)-澳元 可以
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<?php

require_once('DisplayUtils.php');  // functions to aid with display of information

//error_reporting(E_ALL);  // turn on all errors, warnings and notices for easier debugging
$sellerID='SellerIdHere';
$pageResults='';
if(isset($_POST['SellerID']))
{
  $s_endpoint = 'http://open.api.ebay.com/shopping';  // Shopping
  $f_endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1';  // Finding
  $responseEncoding = 'XML';   // Format of the response
  $s_version = '667';   // Shopping API version number
  $f_version = '1.4.0';   // Finding API version number
  $appID   = 'ENTER_APP_ID_HERE'; //replace this with your AppID

  $debug   = true;
  $debug = (boolean) $_POST['Debug'];

  $sellerID  = urlencode (utf8_encode($_POST['SellerID']));   // cleanse input
  $globalID    = urlencode (utf8_encode($_POST['GlobalID']));

  $sitearray = array(
    'EBAY-US' => '0',
    'EBAY-ENCA' => '2',
    'EBAY-GB' => '3',
    'EBAY-AU' => '15',
    'EBAY-DE' => '77',
  );


  $siteID = $sitearray[$globalID];

  $pageResults = '';
  $pageResults .= getUserProfileResultsAsHTML($sellerID);
  $pageResults .= getFindItemsAdvancedResultsAsHTML($sellerID);

} // if


function getUserProfileResultsAsHTML($sellerID) {
  global $siteID, $s_endpoint, $responseEncoding, $s_version, $appID, $debug;
  $results = '';

  $apicall = "$s_endpoint?callname=GetUserProfile"
       . "&version=$s_version"
       . "&siteid=$siteID"
       . "&appid=$appID"
       . "&UserID=lordbrowns"

       . "&IncludeSelector=Details,FeedbackHistory"   // need Details to get MyWorld info
       . "&responseencoding=$responseEncoding";

  if ($debug) { print "<br />GetUserProfile call = <blockquote>$apicall </blockquote>"; }

  // Load the call and capture the document returned by the Shopping API
  $resp = simplexml_load_file($apicall);

  if ($resp) {
    if (!empty($resp->User->MyWorldLargeImage)) {
      $myWorldImgURL = $resp->User->MyWorldLargeImage;
    } else {
      $myWorldImgURL = 'http://pics.ebaystatic.com/aw/pics/community/myWorld/imgBuddyBig1.gif';
    }
    $results .= "<table><tr>";
    $results .= "<td><a href=\"" . $resp->User->MyWorldURL . "\"><img src=\""
          . $myWorldImgURL . "\"></a></td>";
    $results .= "<td>Seller $sellerID<br /> ";
    $results .= "Feedback score : " . $resp->User->FeedbackScore . "<br />";
    $posCount = $resp->FeedbackHistory->UniquePositiveFeedbackCount;
    $negCount = $resp->FeedbackHistory->UniqueNegativeFeedbackCount;
    $posNegCount = $posCount + $negCount;
    if (!$posNegCount) {
        $posNegCount = 1;
    }
    $posFeedBackPct = sprintf("%01.1f", (100 * ($posCount / $posNegCount)));
    $results .= "Positive feedback : $posFeedBackPct%<br />";
    $regDate = substr($resp->User->RegistrationDate, 0, 10);
    $results .= "Registration date : $regDate<br />";

    $results .= "</tr></table>";

  } else {
    $results = "<h3>No user profile for seller $sellerID";
  }
  return $results;
} // function



function getFindItemsAdvancedResultsAsHTML($sellerID) {
  global $globalID, $f_endpoint, $responseEncoding, $f_version, $appID, $debug;

  $maxEntries = 3;

  $itemType  = urlencode (utf8_encode($_POST['ItemType']));
  $itemSort  = urlencode (utf8_encode($_POST['ItemSort']));

  $results = '<table cellspacing="0px" cellpadding="5px" width="100%">
  <tr>
    <th>ID</th>
    <th>Image</th>
    <th>Title</th>
    <th>Price</th>
    <th>Shipping</th>
    <th>Total</th>
    <th>Time Left</th>
    <th>Ends</th>
  </tr>';
  // Construct the FindItems call
  $apicall = "$f_endpoint?OPERATION-NAME=findItemsAdvanced"
       . "&version=$f_version"
       . "&GLOBAL-ID=$globalID"
       . "&SECURITY-APPNAME=$appID"   // replace this with your AppID
       . "&RESPONSE-DATA-FORMAT=$responseEncoding"
       . "&itemFilter(0).name=Seller"
       . "&itemFilter(0).value=$sellerID"
       . "&itemFilter(1).name=ListingType"
       . "&itemFilter(1).value=$itemType"
       . "&paginationInput.entriesPerPage=$maxEntries"
       . "&sortOrder=$itemSort"
       . "&affliate.networkId=9"        // fill in your information in next 3 lines
       . "&affliate.trackingId=123456789"
       . "&affliate.customId=456";

  if ($debug) { print "<br />findItemsAdvanced call = <blockquote>$apicall </blockquote>"; }

  // Load the call and capture the document returned by the Finding API
  $resp = simplexml_load_file($apicall);

  // Check to see if the response was loaded, else print an error
if ($resp->ack == "Success") {


    // If the response was loaded, parse it and build links
    foreach($resp->searchResult->item as $item) {
      if ($item->galleryURL) {
        $picURL = $item->galleryURL;
      } else {
        $picURL = "http://pics.ebaystatic.com/aw/pics/express/icons/iconPlaceholder_96x96.gif";
      }
      $link  = $item->viewItemURL;
      $title = $item->title;
      $itemsID = $item->itemId;
      $price = sprintf("%01.2f", $item->sellingStatus->convertedCurrentPrice);
      $ship  = sprintf("%01.2f", $item->shippingInfo->shippingServiceCost);
      $total = sprintf("%01.2f", ((float)$item->sellingStatus->convertedCurrentPrice
                    + (float)$item->shippingInfo->shippingServiceCost));

        // Determine currency to display - so far only seen cases where priceCurr = shipCurr, but may be others
        $priceCurr = (string) $item->sellingStatus->convertedCurrentPrice['currencyId'];
        $shipCurr  = (string) $item->shippingInfo->shippingServiceCost['currencyId'];
        if ($priceCurr == $shipCurr) {
          $curr = $priceCurr;
        } else {
          $curr = "$priceCurr / $shipCurr";  // potential case where price/ship currencies differ
        }

        $timeLeft = getPrettyTimeFromEbayTime($item->sellingStatus->timeLeft);
        $endTime = strtotime($item->listingInfo->endTime);   // returns Epoch seconds
        $endTime = $item->listingInfo->endTime;

        $results .= "<tr>
            <td>$itemsID</td>
            <td><img src=\"$picURL\"></td>
            <td><a href=\"$link\">$title</a></td>
            <td>$price $curr</td>
            <td>$ship $curr</td>
            <td>$total $curr</td>
            <td>$timeLeft</td>
            <td>$endTime</td>
        </tr>";
    }

    $results .= '</table>';

  }
  // If there was no search response, print an error
  else {
    $results = "<h3>No items found matching the $itemType type.";
  }  // if resp

  return $results;

}  // function


?>



<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>GetUserProfile</title>
<script src="./js/jQuery.js"></script>
<script src="./js/jQueryUI/ui.tablesorter.js"></script>

<script>
  $(document).ready(function() {
    $("table").tablesorter({
      sortList:[[7,0],[4,0]],    // upon screen load, sort by col 7, 4 ascending (0)
      debug: false,        // if true, useful to debug Tablesorter issues
      headers: {
        0: { sorter: false },  // col 0 = first = left most column - no sorting
        5: { sorter: false },
        6: { sorter: false },
        7: { sorter: 'text'}   // specify text sorter, otherwise mistakenly takes shortDate parser
      }
    });
  });
</script>

</head>

<body>


<link rel="stylesheet" href="./css/flora.all.css" type="text/css" media="screen" title="Flora (Default)">

<form action="index.php" method="post">
<table cellpadding="2" border="0">
  <tr>
    <th>SellerID</th>
    <th>Site</th>
    <th>ItemType</th>
    <th>ItemSort</th>
    <th>Debug</th>
  </tr>
  <tr>
    <td><input type="text" name="SellerID" value=""></td>
    <td>
      <select name="GlobalID">
        <option value="EBAY-AU">Australia - EBAY-AU (15) - AUD</option>
        <option value="EBAY-ENCA">Canada (English) - EBAY-ENCA (2) - CAD</option>
        <option value="EBAY-DE">Germany - EBAY-DE (77) - EUR</option>
        <option value="EBAY-GB">United Kingdom - EBAY-GB (3) - GBP</option>
        <option selected value="EBAY-US">United States - EBAY-US (0) - USD</option>
      </select>
    </td>
    <td>
      <select name="ItemType">
        <option selected value="All">All Item Types</option>
        <option value="Auction">Auction Items Only</option>
        <option value="FixedPriced">Fixed Priced Item Only</option>
        <option value="StoreInventory">Store Inventory Only</option>
      </select>
    </td>
    <td>
      <select name="ItemSort">
        <option value="BidCountFewest">Bid Count (fewest bids first) [Applies to Auction Items Only]</option>
        <option selected value="EndTimeSoonest">End Time (soonest first)</option>
        <option value="PricePlusShippingLowest">Price + Shipping (lowest first)</option>
        <option value="CurrentPriceHighest">Current Price Highest</option>
      </select>
    </td>
    <td>
    <select name="Debug">
      <option value="1">true</option>
      <option selected value="0">false</option>
      </select>
    </td>

  </tr>
  <tr>
    <td colspan="4" align="center"><INPUT type="submit" name="submit" value="Search"></td>
  </tr>
</table>
</form>

<?php
  print $pageResults;
<?xml version='1.0' encoding='UTF-8'?>
<findItemsAdvancedResponse xmlns="http://www.ebay.com/marketplace/search/v1/services">
    <ack>Success</ack>
    <version>1.12.0</version>
    <timestamp>2014-03-24T13:04:11.650Z</timestamp>
    <searchResult count="3">
        <item>
            <itemId>111304063912</itemId>
            <title>Outdoor Wicker 10 Seater Teak Timber Dining Table And Chairs Furniture Setting</title>
            <globalId>EBAY-AU</globalId>
            <primaryCategory>
                <categoryId>139849</categoryId>
                <categoryName>Sets</categoryName>
            </primaryCategory>
            <galleryURL>http://thumbs1.ebaystatic.com/m/mUPmUHtcIb4BJcnGF7Qol_A/140.jpg</galleryURL>
            <viewItemURL>http://www.ebay.com.au/itm/Outdoor-Wicker-10-Seater-Teak-Timber-Dining-Table-And-Chairs-Furniture-Setting-/111304063912?pt=AU_OutdoorFurniture</viewItemURL>
            <paymentMethod>CIPInCheckoutEnabled</paymentMethod>
            <paymentMethod>MOCC</paymentMethod>
            <paymentMethod>PayPal</paymentMethod>
            <paymentMethod>PersonalCheck</paymentMethod>
            <paymentMethod>VisaMC</paymentMethod>
            <paymentMethod>PaymentSeeDescription</paymentMethod>
            <paymentMethod>MoneyXferAccepted</paymentMethod>
            <autoPay>false</autoPay>
            <postalCode>2750</postalCode>
            <location>South Penrith,NSW,Australia</location>
            <country>AU</country>
            <shippingInfo>
                <shippingType>Freight</shippingType>
                <shipToLocations>AU</shipToLocations>
            </shippingInfo>
            <sellingStatus>
                <currentPrice currencyId="AUD">1999.0</currentPrice>
                <convertedCurrentPrice currencyId="AUD">1999.0</convertedCurrentPrice>
                <sellingState>Active</sellingState>
                <timeLeft>P0DT2H17M49S</timeLeft>
            </sellingStatus>
            <listingInfo>
                <bestOfferEnabled>true</bestOfferEnabled>
                <buyItNowAvailable>false</buyItNowAvailable>
                <startTime>2014-03-19T15:22:00.000Z</startTime>
                <endTime>2014-03-24T15:22:00.000Z</endTime>
                <listingType>StoreInventory</listingType>
                <gift>false</gift>
            </listingInfo>
            <galleryPlusPictureURL>http://galleryplus.ebayimg.com/ws/web/111304063912_1_0_1.jpg</galleryPlusPictureURL>
            <condition>
                <conditionId>1000</conditionId>
                <conditionDisplayName>Brand New</conditionDisplayName>
            </condition>
            <isMultiVariationListing>false</isMultiVariationListing>
            <topRatedListing>true</topRatedListing>
        </item>
        <item>
            <itemId>111306128036</itemId>
            <title>Outdoor Wicker Modular Lounge Suite Cane Rattan Furniture Setting Sofa DayBed</title>
            <globalId>EBAY-AU</globalId>
            <primaryCategory>
                <categoryId>139849</categoryId>
                <categoryName>Sets</categoryName>
            </primaryCategory>
            <galleryURL>http://thumbs1.ebaystatic.com/pict/1113061280364040_1.jpg</galleryURL>
            <viewItemURL>http://www.ebay.com.au/itm/Outdoor-Wicker-Modular-Lounge-Suite-Cane-Rattan-Furniture-Setting-Sofa-DayBed-/111306128036?pt=AU_OutdoorFurniture</viewItemURL>
            <paymentMethod>CIPInCheckoutEnabled</paymentMethod>
            <paymentMethod>MOCC</paymentMethod>
            <paymentMethod>PayPal</paymentMethod>
            <paymentMethod>PersonalCheck</paymentMethod>
            <paymentMethod>VisaMC</paymentMethod>
            <paymentMethod>PaymentSeeDescription</paymentMethod>
            <paymentMethod>MoneyXferAccepted</paymentMethod>
            <autoPay>false</autoPay>
            <postalCode>2749</postalCode>
            <location>Cranebrook,NSW,Australia</location>
            <country>AU</country>
            <shippingInfo>
                <shippingType>Freight</shippingType>
                <shipToLocations>AU</shipToLocations>
            </shippingInfo>
            <sellingStatus>
                <currentPrice currencyId="AUD">1399.0</currentPrice>
                <convertedCurrentPrice currencyId="AUD">1399.0</convertedCurrentPrice>
                <bidCount>0</bidCount>
                <sellingState>Active</sellingState>
                <timeLeft>P0DT4H54M20S</timeLeft>
            </sellingStatus>
            <listingInfo>
                <bestOfferEnabled>false</bestOfferEnabled>
                <buyItNowAvailable>false</buyItNowAvailable>
                <startTime>2014-03-21T17:58:31.000Z</startTime>
                <endTime>2014-03-24T17:58:31.000Z</endTime>
                <listingType>Auction</listingType>
                <gift>false</gift>
            </listingInfo>
            <galleryPlusPictureURL>http://galleryplus.ebayimg.com/ws/web/111306128036_1_0_1.jpg</galleryPlusPictureURL>
            <condition>
                <conditionId>1000</conditionId>
                <conditionDisplayName>Brand New</conditionDisplayName>
            </condition>
            <isMultiVariationListing>false</isMultiVariationListing>
            <topRatedListing>true</topRatedListing>
        </item>
        <item>
            <itemId>111306305056</itemId>
            <title>Outdoor Wicker 8 Seater Rectangle Dining Table and Chairs Furniture Setting Set</title>
            <globalId>EBAY-AU</globalId>
            <primaryCategory>
                <categoryId>139849</categoryId>
                <categoryName>Sets</categoryName>
            </primaryCategory>
            <galleryURL>http://thumbs1.ebaystatic.com/m/mMoVkPcCBnFqTnrVExI2EYg/140.jpg</galleryURL>
            <viewItemURL>http://www.ebay.com.au/itm/Outdoor-Wicker-8-Seater-Rectangle-Dining-Table-and-Chairs-Furniture-Setting-Set-/111306305056?pt=AU_OutdoorFurniture</viewItemURL>
            <paymentMethod>CIPInCheckoutEnabled</paymentMethod>
            <paymentMethod>MOCC</paymentMethod>
            <paymentMethod>PayPal</paymentMethod>
            <paymentMethod>PersonalCheck</paymentMethod>
            <paymentMethod>VisaMC</paymentMethod>
            <paymentMethod>PaymentSeeDescription</paymentMethod>
            <paymentMethod>MoneyXferAccepted</paymentMethod>
            <autoPay>false</autoPay>
            <postalCode>2750</postalCode>
            <location>South Penrith,NSW,Australia</location>
            <country>AU</country>
            <shippingInfo>
                <shippingType>Freight</shippingType>
                <shipToLocations>AU</shipToLocations>
            </shippingInfo>
            <sellingStatus>
                <currentPrice currencyId="AUD">1689.0</currentPrice>
                <convertedCurrentPrice currencyId="AUD">1689.0</convertedCurrentPrice>
                <bidCount>0</bidCount>
                <sellingState>Active</sellingState>
                <timeLeft>P0DT8H47M11S</timeLeft>
            </sellingStatus>
            <listingInfo>
                <bestOfferEnabled>false</bestOfferEnabled>
                <buyItNowAvailable>false</buyItNowAvailable>
                <startTime>2014-03-21T21:51:22.000Z</startTime>
                <endTime>2014-03-24T21:51:22.000Z</endTime>
                <listingType>Auction</listingType>
                <gift>false</gift>
            </listingInfo>
            <galleryPlusPictureURL>http://galleryplus.ebayimg.com/ws/web/111306305056_1_0_1.jpg</galleryPlusPictureURL>
            <condition>
                <conditionId>1000</conditionId>
                <conditionDisplayName>Brand New</conditionDisplayName>
            </condition>
            <isMultiVariationListing>false</isMultiVariationListing>
            <topRatedListing>true</topRatedListing>
        </item>
    </searchResult>
    <paginationOutput>
        <pageNumber>1</pageNumber>
        <entriesPerPage>3</entriesPerPage>
        <totalPages>39</totalPages>
        <totalEntries>116</totalEntries>
    </paginationOutput>
    <itemSearchURL>http://www.ebay.com.au/sch/i.html?_sasl=united_house&amp;_saslop=1&amp;_fss=1&amp;LH_IncludeSIF=1&amp;LH_SpecificSeller=1&amp;_ddo=1&amp;_ipg=3&amp;_pgn=1&amp;_sop=1</itemSearchURL>
</findItemsAdvancedResponse>