cvs: pear /Services_Yahoo_JP/examples Services_Yahoo_JP_Examples_01.php
[email protected] ("Tetsuya Nakase")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvstetsuya1209398420@cvsserver> |
tetsuya Mon Apr 28 16:00:20 2008 UTC
Added files:
/pear/Services_Yahoo_JP/examples Services_Yahoo_JP_Examples_01.php
Log:
Initial commit
http://cvs.php.net/viewvc.cgi/pear/Services_Yahoo_JP/examples/Services_Yahoo_JP_Examples_01.php?view=markup&rev=1.1
Index: pear/Services_Yahoo_JP/examples/Services_Yahoo_JP_Examples_01.php
+++ pear/Services_Yahoo_JP/examples/Services_Yahoo_JP_Examples_01.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Test Script for Services_Yahoo_JP
*
* Services_Yahoo_JP_Examples_01
*
* PHP version 5
*
* LICENSE: This source file is subject to the New BSD license that is
* available through the world-wide-web at the following URI:
* http://www.opensource.org/licenses/bsd-license.php. If you did not receive
* a copy of the New BSD License and are unable to obtain it through the web,
* please send a note to [email protected] so we can mail you a copy immediately.
*
* @category Services
* @package Services_Yahoo_JP
* @author Tetsuya Nakase <[email protected]>
* @copyright 2008 Tetsuya Nakase
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: Services_Yahoo_JP_Examples_01.php,v 1.1 2008/04/28 16:00:20 tetsuya Exp $
* @link http://phpize.net
*/
require_once 'Services/Yahoo/JP/News.php';
try {
$yahoo = Services_Yahoo_JP_News::factory('topics');
$yahoo->withAppID('PEAR_Services_Y_JP');
$yahoo->setWord('google');
$result = $yahoo->submit();
foreach ($result as $entry) {
var_dump($entry);
}
} catch (Services_Yahoo_Exception $e) {
print('Error.');
}
?>