Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.
For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email firstname.lastname@example.org.
Learning Magento SOAP API: fetching 5 most recent products
I’m just learning Magento and its Web Services API for a new job. I’ve just managed to build some basic PHP scripts fetching products in specific categories. I now need to fetch the newest and the best-selling products, but am struggling to find good documentation on this. Any help, pointers, sample code or anything else really would be much appreciated
To update: I’ve found a quick and dirty way of printing the most recent products, as the following call returns an array ordered by product ID (this ordering means that I can use array_pop() to get the element in it with the highest product ID):