topical media & game development

talk show tell print

server-webapi-code-07-soapSimpleSearchRequest.php / php



  <?php
  
  require('../lib/nusoap.php');
  
  client = 
  new soapclient("http://soap.amazon.com/schemas2/AmazonWebServices.wsdl", true);
  
  params = array(
                      'keyword'    => 'chris shiflett',
                      'page'        => 1,
                      'mode'        => 'books',
                      'tag'         => 'preinheimerco-20',
                      'type'        => 'lite',
                      'devtag'      => '1PHH5VTRY7D300H7JTR2'
  );
  
  namespace = 'soap.amazon.com';
  action = 'soap.amazon.com';
  method = "KeywordSearchRequest";
  result = client->call(method, 
    array('KeywordSearchRequest' => params), 
    namespace, action);
  
  //print_r(result);
  resultItems = result['items'];
  
  foreach (resultItems AS item)
  {
    echo item['ProductName'];
  }
  ?>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.