Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid ASIN Result #14

Closed
sebclark opened this issue Nov 4, 2017 · 5 comments · Fixed by #16
Closed

Invalid ASIN Result #14

sebclark opened this issue Nov 4, 2017 · 5 comments · Fixed by #16

Comments

@sebclark
Copy link

sebclark commented Nov 4, 2017

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
Copy link
Owner

MarcL commented Nov 6, 2017

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 pushed a commit that referenced this issue Nov 6, 2017
Throw errors on invalid XML
@MarcL MarcL closed this as completed in #16 Nov 6, 2017
MarcL added a commit that referenced this issue Nov 6, 2017
Throw errors on invalid XML
@MarcL
Copy link
Owner

MarcL commented Nov 6, 2017

Hey @sebclark.

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

Cheers,
Marc

@Presenze
Copy link

Presenze commented Oct 1, 2023

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
Copy link
Owner

MarcL commented Oct 1, 2023

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
Copy link

Presenze commented Oct 1, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants