MarcL / AmazonProductAPI

PHP library to retrieve products from the Amazon Product API
MIT License
130 stars 50 forks source link

Invalid ASIN Result #14

Closed sebclark closed 6 years ago

sebclark commented 6 years ago

Thanks for this code - it works well - except If I add an invalid ASIN I get the following (PHP 5.6.30):

Fatal error: Call to undefined method MarcL\Transformers\SimpleArrayTransformer::AddError() in /xxxxxx/html/vendor/marcl/amazonproductapi/src/Transformers/SimpleArrayTransformer.php on line 24

AmazonAPI looks fine

private function AddError($error) {
    array_push($this->mErrors, $error);
}

I am using the $items = $amazonAPI->ItemLookUp($asinIds); Also seems like the itemlookup is limit to 10 items - Amazon restriction?

MarcL commented 6 years ago

Hey @sebclark,

Yes - there's definitely a 10 ASIN limit on the ItemLookup endpoint. I'll add a check for it and have a look at the bug for you.

Cheers, Marc

MarcL commented 6 years ago

Hey @sebclark.

Want to grab v3.0.2 and that bug should now be fixed for you. 👍

Cheers, Marc

Presenze commented 11 months ago

Hi, I'm really a beginner, I can't get the search box to appear on the screen in the home page of the site in php, can anyone help me?

MarcL commented 11 months ago

Hey @Presenze.

I think you need to look at some beginner HTML and PHP to get it working. Take a look at a simple example like this one.

Thanks!

Presenze commented 11 months ago

Hey @Presenze.

I think you need to look at some beginner HTML and PHP to get it working. Take a look at a simple example like this one.

Thanks!

thanks now to make it work I have to connect the amazon api credentials php file and include it in the html file with include ?