查找具有eBay PHP SDK的物品不会返回卖方信息



我正在使用David Sadler的PHP eBay SDK将eBay集成到PHP测试应用程序中。使用$service->findItemsByKeywords,结果确实具有itemIdtitlesellingStatus,但没有卖方信息($item-seller)。

object(DTSeBaySDKFindingTypesSearchItem)[43]
  private 'values' (DTSeBaySDKTypesBaseType) => 
    array (size=18)
      'itemId' => string '20197XXXXX' (length=12)
      'title' => string 'Harry ...' (length=78)
      'globalId' => string 'EBAY-US' (length=7)
      'primaryCategory' => 
        object(DTSeBaySDKFindingTypesCategory)[46]
          private 'values' (DTSeBaySDKTypesBaseType) => 
            array (size=2)
              ...
          private 'attachment' (DTSeBaySDKTypesBaseType) => 
            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(DTSeBaySDKTypesRepeatableType)[45]
          private 'data' => 
            array (size=1)
              ...
          private 'position' => int 0
          private 'class' => string 'DTSeBaySDKFindingTypesSearchItem' (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(DTSeBaySDKFindingTypesShippingInfo)[47]
          private 'values' (DTSeBaySDKTypesBaseType) => 
            array (size=6)
              ...
          private 'attachment' (DTSeBaySDKTypesBaseType) => 
            array (size=2)
              ...
      'sellingStatus' => 
        object(DTSeBaySDKFindingTypesSellingStatus)[48]
          private 'values' (DTSeBaySDKTypesBaseType) => 
            array (size=4)
              ...
          private 'attachment' (DTSeBaySDKTypesBaseType) => 
            array (size=2)
              ...
      'listingInfo' => 
        object(DTSeBaySDKFindingTypesListingInfo)[52]
          private 'values' (DTSeBaySDKTypesBaseType) => 
            array (size=6)
              ...
          private 'attachment' (DTSeBaySDKTypesBaseType) => 
            array (size=2)
              ...
      'returnsAccepted' => boolean true
      'condition' => 
        object(DTSeBaySDKFindingTypesCondition)[57]
          private 'values' (DTSeBaySDKTypesBaseType) => 
            array (size=2)
              ...
          private 'attachment' (DTSeBaySDKTypesBaseType) => 
            array (size=2)
              ...
      'isMultiVariationListing' => boolean false
      'topRatedListing' => boolean true
  private 'attachment' (DTSeBaySDKTypesBaseType) => 
    array (size=2)
      'data' => null
      'mimeType' => null

这可能是基于使用的API密钥的特定情况吗?

您可能还需要使用outputSelector字段。将其设置为" SellerInfo",以"在响应中包括有关卖方的信息。"。请记住,这是一个可重复的字段,因此您必须像这样使用它

$request->...->outputSelector = ['SellerInfo','StoreInfo',...];

相关内容

  • 没有找到相关文章

最新更新