davidtsadler / ebay-sdk-examples

Several examples of using the eBay SDK for PHP
http://devbay.net
Apache License 2.0
184 stars 100 forks source link

Getting sold / available quantity #6

Closed 3zzy closed 9 years ago

3zzy commented 9 years ago

I need to get sold/available quantity for a particular product and it seems getSingleItem is the only option: http://developer.ebay.com/devzone/shopping/docs/callref/GetSingleItem.html

I'm changing the field selector to:

$request->IncludeSelector = 'QuantitySold';

.. but it doesn't return anything at all. What am I doing wrong?

davidtsadler commented 9 years ago

You need to pass Details.

$request->IncludeSelector = 'Details';.

I'll update the GetSingleItem example so that it displays the Quantity.