Changing error message – checking if API answer is empty
-
Hi,
What would be the best way to test if a search through the php function AmazonAutoLinks returns an error? (for example, no products found?)
Example: following might return “Amazon Auto Links: PAAPIError: NoResults: No results found for your request.” I would like to customize the error message.
<?php AmazonAutoLinks( array( ‘search’ => ‘xxxxxxx’ ) ); ?>
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Changing error message – checking if API answer is empty’ is closed to new replies.