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

SoldList example #12

Closed gamesbyer closed 8 years ago

gamesbyer commented 9 years ago

Hallo,

firstly i would like to say thanks for the great work you did. I've got a small ebay shop and successfully managed to get your example.php "11-get-my-ebay-selling.php" working..

I'm relatively new to this. Can you give an example how i can get the SoldItems-List instead of the ActiveList as a result?

All i get is a empty result. Maybe it's the way i handle the response? Is it an array?

After all i think something wrong here:

if ($response->Ack !== 'Failure' && isset($response->SoldList)) {
    foreach ($response->SoldList->ItemArray->Item as $item) {
        echo "(" . $item->ItemID . ") " . $item->Title . " " . $item->SellingStatus->CurrentPrice->currencyID . " " . $item->SellingStatus->CurrentPrice->value . "<br />\n";
    }
}

Thanks a lot,

Gamesbyer