Services_Yahoo_JP
[ class tree: Services_Yahoo_JP ] [ index: Services_Yahoo_JP ] [ all elements ]

Source for file Services_Yahoo_JP_Examples_01.php

Documentation is available at Services_Yahoo_JP_Examples_01.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3.  
  4. /**
  5.  * Test Script for Services_Yahoo_JP
  6.  *
  7.  * Services_Yahoo_JP_Examples_01
  8.  *
  9.  * PHP version 5
  10.  *
  11.  * LICENSE: This source file is subject to the New BSD license that is
  12.  * available through the world-wide-web at the following URI:
  13.  * http://www.opensource.org/licenses/bsd-license.php. If you did not receive
  14.  * a copy of the New BSD License and are unable to obtain it through the web,
  15.  * please send a note to license@php.net so we can mail you a copy immediately.
  16.  *
  17.  * @category  Services
  18.  * @package   Services_Yahoo_JP
  19.  * @author    Tetsuya Nakase <phpizer@gmail.com>
  20.  * @copyright 2008 Tetsuya Nakase
  21.  * @license   http://www.opensource.org/licenses/bsd-license.php BSD
  22.  * @version   CVS: $Id: Services_Yahoo_JP_Examples_01.php,v 1.1 2008/04/28 16:00:20 tetsuya Exp $
  23.  * @link      http://phpize.net
  24.  */
  25.  
  26. require_once 'Services/Yahoo/JP/News.php';
  27.  
  28. try {
  29.     $yahoo Services_Yahoo_JP_News::factory('topics')
  30.     $yahoo->withAppID('PEAR_Services_Y_JP');
  31.     $yahoo->setWord('google');
  32.  
  33.     $result $yahoo->submit()
  34.  
  35.     foreach ($result as $entry{
  36.         var_dump($entry);
  37.     }
  38. catch (Services_Yahoo_Exception $e{
  39.     print('Error.');
  40. }
  41. ?>

Documentation generated on Fri, 19 Sep 2008 21:30:08 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.