Bluehost.com Web Hosting $6.95

newbie: amazon & webservices & website

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-30-2006
Jeff
 
Posts: n/a
Default newbie: amazon & webservices & website

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



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0