davidtsadler / ebay-sdk-php

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

SoldItemsOnly not working #254

Closed LeighBicknell closed 5 years ago

LeighBicknell commented 5 years ago
        $soldItemFilter = new ItemFilter();
        $soldItemFilter->name = 'SoldItemsOnly';
        $soldItemFilter->value = ['true'];
        $request->itemFilter[] = $soldItemFilter;

        $response = $service->findItemsAdvanced($request);

This always returns zero results. I've also tried various others, '1' does not work. '0' returns unsold items as expected.

Is there something i'm doing wrong, or is this an issue in the code?

LeighBicknell commented 5 years ago

After lots of playing around, I've got this to work. For those having the same problem, you must use the FindCompletedItemsRequest for this to work.