7

我是 ebay API 的新手。我正在尝试从 ebay 调用服务,如下所示

http://svcs.ebay.com/services/search/FindingService/v1?
OPERATION-NAME=findItemsAdvanced&
SERVICE-VERSION=1.12.0&
SECURITY-APPNAME=XXXXXXXX&
GLOBAL-ID=EBAY-IN&outputSelector=PictureURLLarge&
RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD

我已经添加了outputSelector=PictureURLLarge. 但有些退回的产品没有收到pictureURLLarge

以下是SimpleXMLElement 我得到的其中一个的输出,

SimpleXMLElement Object
    (
     ............... 
     ...............
    [galleryURL] => http://thumbs3.ebaystatic.com/m/mul3eDNEoMQ0GzjE_L86YtA/80.jpg
    [viewItemURL] => http://www.ebay.in/itm/Nike-Golf-Sport-Shoe-Tote-/290867798430?pt=LH_DefaultDomain_203
    [paymentMethod] => PaisaPayEscrow
    [autoPay] => false
    [location] => India
    [country] => IN
    [shippingInfo] => SimpleXMLElement Object
        (
            [shippingServiceCost] => 0.0
            [shippingType] => Free
            [shipToLocations] => IN
        )

    [sellingStatus] => SimpleXMLElement Object
        (
            [currentPrice] => 3540.0
            [convertedCurrentPrice] => 3540.0
            [sellingState] => Active
            [timeLeft] => P26DT3H27M13S
        )

    [listingInfo] => SimpleXMLElement Object
        (
            [bestOfferEnabled] => false
            [buyItNowAvailable] => false
            [startTime] => 2013-02-21T18:09:53.000Z
            [endTime] => 2013-09-19T18:14:53.000Z
            [listingType] => StoreInventory
            [gift] => false
        )

    [condition] => SimpleXMLElement Object
        (
            [conditionId] => 1000
            [conditionDisplayName] => New
        )

    [isMultiVariationListing] => false
    [topRatedListing] => false
)

如果我们检查产品所在的链接,即viewItemURL here,我们会看到一个大图像,但在这里我们在PictureURLLarge中得到的不是相同的。

有没有其他方法可以做到这一点?

任何帮助都是不言而喻的。

注意:我不想使用 GetSingleItem,这会导致大量 api 调用。

提前致谢。

4

0 回答 0