Zend_Service_Yahoo doesn't work anymore

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Zend_Service_Yahoo doesn't work anymore

bashlook
Hi there,

I just noticed today that Zend_Service_Yahoo doesn't work anymore. Maybe Yahoo have change their API or something. For example, i use this script from http://framework.zend.com/manual/en/zend.service.yahoo.html.

In independent test.php which have same directory with Zend :

<?php

require_once 'Zend/Loader.php';
Zend_Loader::loadClass("Zend_Service_Yahoo");
$yahoo = new Zend_Service_Yahoo("MYYAHOOAPI");
$results = $yahoo->webSearch('PHP');
foreach ($results as $result) {
    echo $result->Title .'<br />';
}

?>

Will result :

Fatal error: Uncaught exception 'Zend_Service_Exception' with message 'An error occurred sending request. Status code: 404' in /var/www/Zend/Service/Yahoo.php:429 Stack trace: #0 /var/www/test.php(6): Zend_Service_Yahoo->webSearch('PHP') #1 {main} thrown in /var/www/Zend/Service/Yahoo.php on line 429


But, when i use flickr :
http://framework.zend.com/manual/en/zend.service.flickr.html


<?php
    require_once 'Zend/Loader.php';
    Zend_Loader::loadClass("Zend_Service_Flickr");
    $flickr = new Zend_Service_Flickr('MY_API_KEY');
     
    $results = $flickr->tagSearch("php");
     
    foreach ($results as $result) {
        echo $result->title . '<br />';
    }

?>

It's works also with another Services. I use the latest Zend Framework.


Hope this notification help someone.

Thanks