Re: cvs: peardoc /en/package/webservices/services-youtube example.xml intro.xml

From: Date: Thu, 28 Sep 2006 22:20:19 +0000
Subject: Re: cvs: peardoc /en/package/webservices/services-youtube example.xml intro.xml
References: 1 2  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8545@lists.php.net to get a copy of this message
Hi, Martin. Thanks for your advice! I will fix it soon as possible. - Shin On 9/29/06, Martin Jansen <mj@php.net> wrote:
On Thu Sep 28, 2006 at 04:5748PM -0000, Shin OHNO wrote: <programlisting role="php">
    <![CDATA[require_once 'Services/YouTube.php';
    $dev_id = "YOUR_DEV_ID";
    $user_id = "USER_ID";
    $youtube = new Services_YouTube($dev_id, array('usesCache' => true));
    $user = $youtube->getProfile($user_id);
    $profile = $user->user_profile;
    print "{$profile->first_name} {$profile->last_name} :({$profile->video_watch_count} Wathced.)\n";
]]> </programlisting> It is better to remove the leading whitespace inside the <programlisting> tags because this whitespace will be kept when transforming DocBook to HTML and thus things will look odd in the manual. - Martin
-- Shin OHNO http://www.ganchiku.com/

« previous php.pear.doc (#8545) next »