davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 346 forks source link

findItemAdvanced not return watchCount #260

Closed yasir-topdot closed 4 years ago

yasir-topdot commented 5 years ago

The findItemAdvanced cannot return watchCount in linstingInfo node. But when I saw the XML response it included the watchCount in listingInfo node. Please check this response


<findItemsAdvancedResponse
    xmlns="http://www.ebay.com/marketplace/search/v1/services">
    <ack>Success</ack>
    <version>1.13.0</version>
    <timestamp>2019-06-14T09:07:17.062Z</timestamp>
    <searchResult count="2">
        <item>
            <itemId>352691623651</itemId>
            <title>  MICHAEL JACKSON LIBERIAN GIRL STAR MOBILE PACK LTD EDT 7"</title>
            <globalId>EBAY-GB</globalId>
            <primaryCategory>
                <categoryId>176985</categoryId>
                <categoryName>Records</categoryName>
            </primaryCategory>
            <galleryURL>http://thumbs4.ebaystatic.com/m/m24LUBj39CDboSzIhVOYZ7g/140.jpg</galleryURL>
            <viewItemURL>http://www.ebay.com/itm/MICHAEL-JACKSON-LIBERIAN-GIRL-STAR-MOBILE-PACK-LTD-EDT-7-/352691623651</viewItemURL>
            <paymentMethod>PayPal</paymentMethod>
            <autoPay>false</autoPay>
            <postalCode>CO151HQ</postalCode>
            <location>United Kingdom</location>
            <country>GB</country>
            <shippingInfo>
                <shippingServiceCost currencyId="USD">16.49</shippingServiceCost>
                <shippingType>Flat</shippingType>
                <shipToLocations>Worldwide</shipToLocations>
                <expeditedShipping>false</expeditedShipping>
                <oneDayShippingAvailable>false</oneDayShippingAvailable>
                <handlingTime>2</handlingTime>
            </shippingInfo>
            <sellingStatus>
                <currentPrice currencyId="GBP">39.99</currentPrice>
                <convertedCurrentPrice currencyId="USD">50.72</convertedCurrentPrice>
                <sellingState>Active</sellingState>
                <timeLeft>P29DT23H12M26S</timeLeft>
            </sellingStatus>
            <listingInfo>
                <bestOfferEnabled>false</bestOfferEnabled>
                <buyItNowAvailable>false</buyItNowAvailable>
                <startTime>2019-06-14T08:19:43.000Z</startTime>
                <endTime>2019-07-14T08:19:43.000Z</endTime>
                <listingType>FixedPrice</listingType>
                <gift>false</gift>
                **<watchCount>1</watchCount>**
            </listingInfo>
            <returnsAccepted>true</returnsAccepted>
            <condition>
                <conditionId>3000</conditionId>
                <conditionDisplayName>Used</conditionDisplayName>
            </condition>
            <isMultiVariationListing>false</isMultiVariationListing>
            <pictureURLLarge>https://i.ebayimg.com/00/s/MTIwMFgxNjAw/z/w0QAAOSwdg5dA1fv/$_1.JPG</pictureURLLarge>
            <topRatedListing>false</topRatedListing>
        </item>
        <item>
            <itemId>312501818163</itemId>
            <title>Michael Jackson Liberian Girl Unopened Star Mobile Pack Sleeve 7" Vinyl Record </title>
            <globalId>EBAY-GB</globalId>
            <primaryCategory>
                <categoryId>176985</categoryId>
                <categoryName>Records</categoryName>
            </primaryCategory>
            <galleryURL>http://thumbs4.ebaystatic.com/m/mYcjBTZrPxuyZ_jbzDeswNw/140.jpg</galleryURL>
            <viewItemURL>http://www.ebay.com/itm/Michael-Jackson-Liberian-Girl-Unopened-Star-Mobile-Pack-Sleeve-7-Vinyl-Record-/312501818163</viewItemURL>
            <paymentMethod>PayPal</paymentMethod>
            <autoPay>false</autoPay>
            <postalCode>SN151NT</postalCode>
            <location>United Kingdom</location>
            <country>GB</country>
            <shippingInfo>
                <shippingServiceCost currencyId="USD">16.44</shippingServiceCost>
                <shippingType>Flat</shippingType>
                <shipToLocations>Worldwide</shipToLocations>
                <expeditedShipping>false</expeditedShipping>
                <oneDayShippingAvailable>false</oneDayShippingAvailable>
                <handlingTime>2</handlingTime>
            </shippingInfo>
            <sellingStatus>
                <currentPrice currencyId="GBP">80.0</currentPrice>
                <convertedCurrentPrice currencyId="USD">101.47</convertedCurrentPrice>
                <sellingState>Active</sellingState>
                <timeLeft>P11DT6H45M29S</timeLeft>
            </sellingStatus>
            <listingInfo>
                <bestOfferEnabled>false</bestOfferEnabled>
                <buyItNowAvailable>false</buyItNowAvailable>
                <startTime>2019-02-25T15:52:46.000Z</startTime>
                <endTime>2019-06-25T15:52:46.000Z</endTime>
                <listingType>StoreInventory</listingType>
                <gift>false</gift>
                **<watchCount>5</watchCount>**
            </listingInfo>
            <returnsAccepted>true</returnsAccepted>
            <condition>
                <conditionId>3000</conditionId>
                <conditionDisplayName>Used</conditionDisplayName>
            </condition>
            <isMultiVariationListing>false</isMultiVariationListing>
            <pictureURLLarge>https://i.ebayimg.com/00/s/MTIwMFgxNjAw/z/PxEAAOSw5LZcdA83/$_1.JPG</pictureURLLarge>
            <topRatedListing>false</topRatedListing>
        </item>
    </searchResult>
    <paginationOutput>
        <pageNumber>1</pageNumber>
        <entriesPerPage>100</entriesPerPage>
        <totalPages>1</totalPages>
        <totalEntries>2</totalEntries>
    </paginationOutput>
    <itemSearchURL>http://www.ebay.com/sch/i.html?LH_AvailTo=1&amp;_nkw=MICHAEL+JACKSON+LIBERIAN+GIRL+STAR+MOBILE+PACK&amp;_fls=1&amp;_ipg=100&amp;_os=C%7CA%7CCD%7CPL%7CD&amp;_pgn=2&amp;_saact=1&amp;_sop=10</itemSearchURL>
    <categoryHistogramContainer>
        <categoryHistogram>
            <categoryId>11233</categoryId>
            <categoryName>Music</categoryName>
            <count>2</count>
            <childCategoryHistogram>
                <categoryId>176985</categoryId>
                <categoryName>Records</categoryName>
                <count>2</count>
            </childCategoryHistogram>
        </categoryHistogram>
    </categoryHistogramContainer>
    <conditionHistogramContainer>
        <conditionHistogram>
            <condition>
                <conditionId>3000</conditionId>
                <conditionDisplayName>Used</conditionDisplayName>
            </condition>
            <count>2</count>
        </conditionHistogram>
    </conditionHistogramContainer>
</findItemsAdvancedResponse>`
michabbb commented 5 years ago

This project is dead more than one year, what do you expect?