Zend Framework: Question about images and Zend_Service_Amazon

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Taylor

    #1

    Zend Framework: Question about images and Zend_Service_Amazon

    Hi,

    I'm trying to utilise the Zend_Server_Ama zon API in Zend Framwork to
    view images of search results.

    require_once'Ze nd/Service/Amazon/Query.php';

    $query = new Zend_Service_Am azon_Query('MY-KEY', 'UK');
    $query->Category('Book s')->Keywords('PHP' );
    $results = $query->search();

    foreach($result s as $result) {


    echo $result->Title.'<br>' ;
    }

    This example works great for getting the book title, but, I don't
    understand how to then get the image. There is another class,
    Zend_Service_Am azon_Image, which seems to be the ticket; but it expects
    the parameter to be of type DOM. Any examples of how to use this class?
    I wrongly presumed you'd pass it an instance of the ZS_AQ class.

    Thanks

    Andrew

Working...