我正在使用davidsadler的PHP ebay SDK将ebay集成到PHP测试应用程序中。使用$ service-> findItemsByKeywords,结果确实有itemId,title和sellingStatus,但没有卖家信息($ item-seller)。
object(DTS\eBaySDK\Finding\Types\SearchItem)[43]
private 'values' (DTS\eBaySDK\Types\BaseType) =>
array (size=18)
'itemId' => string '20197XXXXX' (length=12)
'title' => string 'Harry ...' (length=78)
'globalId' => string 'EBAY-US' (length=7)
'primaryCategory' =>
object(DTS\eBaySDK\Finding\Types\Category)[46]
private 'values' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
private 'attachment' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
'galleryURL' => string 'http://thumbs4.ebaystatic.com/m/xxxxxxxx/140.jpg' (length=63)
'viewItemURL' => string 'http://www.ebay.com/itm/Harry...../20197XXXXX' (length=112)
'paymentMethod' =>
object(DTS\eBaySDK\Types\RepeatableType)[45]
private 'data' =>
array (size=1)
...
private 'position' => int 0
private 'class' => string 'DTS\eBaySDK\Finding\Types\SearchItem' (length=36)
private 'property' => string 'paymentMethod' (length=13)
private 'expectedType' => string 'string' (length=6)
'autoPay' => boolean true
'postalCode' => string 'ggggg' (length=5)
'location' => string 'hhhhhhhhhhh,vv,USA' (length=14)
'country' => string 'US' (length=2)
'shippingInfo' =>
object(DTS\eBaySDK\Finding\Types\ShippingInfo)[47]
private 'values' (DTS\eBaySDK\Types\BaseType) =>
array (size=6)
...
private 'attachment' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
'sellingStatus' =>
object(DTS\eBaySDK\Finding\Types\SellingStatus)[48]
private 'values' (DTS\eBaySDK\Types\BaseType) =>
array (size=4)
...
private 'attachment' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
'listingInfo' =>
object(DTS\eBaySDK\Finding\Types\ListingInfo)[52]
private 'values' (DTS\eBaySDK\Types\BaseType) =>
array (size=6)
...
private 'attachment' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
'returnsAccepted' => boolean true
'condition' =>
object(DTS\eBaySDK\Finding\Types\Condition)[57]
private 'values' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
private 'attachment' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
...
'isMultiVariationListing' => boolean false
'topRatedListing' => boolean true
private 'attachment' (DTS\eBaySDK\Types\BaseType) =>
array (size=2)
'data' => null
'mimeType' => null
根据所使用的api密钥,这可能是某种特定情况吗?
答案 0 :(得分:0)
您可能还想使用outputSelector
字段。将其设置为" SellerInfo"到"在回复中包含有关卖家的信息。"。请记住,这是一个REPEATABLE字段,所以你必须像这样使用它
$request->...->outputSelector = ['SellerInfo','StoreInfo',...];