This is a discussion on newbie: amazon & webservices & website within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hey PHP version 4.4.2 On my website I really would like to use the amazon webservices, so I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 confused, 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 |