For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > newbie: amazon & webservices & website









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author newbie: amazon & webservices & website
Jeff

2006-01-29, 6:56 pm

Hey

PHP version 4.4.2

On my website I really would like to use the amazon webservices, so I can
display a picture of a book from amazon on my site...

I have tryed using this code:
$client = new
soapclient("http://soap-eu.amazon.com/schemas3/AmazonWebServices.wsdl",
true);
// create a proxy
$proxy = $client->getProxy();
$request->SearchIndex="Books";
$request->Keywords="PHP";
$request->ResponseGroup="Small, Image";
$paramters->SubscriptionID="XXXXXXXXXXXXXXXXXXXX";
$response = $proxy->ItemSearch($parameters);

<I know the code above isn't displaying any images on my website, but before
I add more functionality to the code I want to fix the code I currenly have>

But it return this error:
Fatal error: Call to undefined function: itemsearch()

So you see I'm having problems with this.... I've got 4 questions for you:

1)
$response = $proxy->ItemSearch($parameters);
Is ItemSearch representing a method I'll find in the documentation for
amazon webservices?

2)
If you have a good link to a tutorial that shows how to set this up (php),
then I would be happy if you could send me the link
- I know I can google to find it too, but I've been doing that and only get
examples that I don't get to work. I think the reason I don't get them to
work is that the examlples I find shows how to display multiple items (I
want only 1 item displayed)... so the examples I find are using different
technique to search the amazon website. Some are using ItemSearch, someone
else are using BrowseNodeSearchRequest... And I get , I'm not sure
what is the correct search method when I only want 1 item displayed.

3)
As SubscriptionID am I using ACCESS KEY ID, is this correct?

4)
What am I doing wrong at Fatal error: Call to undefined function:
itemsearch() ???


Please help me

Jeff



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com