PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_Amazon » Bug #2342

$mode of null returns music only by default

Details

Submitted2004-09-15 19:00 UTC
Fromjoe at joestump dot net
AssignedAZTEK
StatusClosed
PackageServices_Amazon
PHP VersionIrrelevant
OSAll
Roadmaps(Not assigned)

Comments

[2004-09-15 19:00 UTC] joe at joestump dot net

Description:
------------
I'm sending null as the mode and I'm getting back music only by default. Is this an Amazon thing? Does the type=lite have anything to do with this by chance?

A var_dump of the URL shows no $mode:

http://xml.amazon.com/onca/xml2?locale=us&type=lite&f=xml&t=allshaskespeare&dev-t=136GXXXXP8MKZZZZ582&page=2&KeywordSearch=shakespeare

A var_dump of the $mode returns NULL.

--Joe

[2005-10-07 06:49 UTC] ttsuruoka at php dot net

Corrected a comment.
Amazon.php:
371 /**
372 * Searches Amazon.com for a specific keyword.
373 *
374 * To limit your search to just a specific category such as books then set
375 * the $mode param to something other then null. See {@link getModes()} for a list of
376- * modes. If the $mode param is null it will search all modes.
376+ * modes.

The mode is always required.
If the mode is null, the Amazon returns music only.

Thank you for a report.