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

From: Date: Sat, 03 Feb 2007 02:26:18 +0000
Subject: cvs: peardoc /ja/package/webservices services-youtube.xml /ja/package/webservices/services-youtube example.xml intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9389@lists.php.net to get a copy of this message
takagi Sat Feb 3 02:26:18 2007 UTC Added files: /peardoc/ja/package/webservices/services-youtube intro.xml example.xml /peardoc/ja/package/webservices services-youtube.xml Log: initial translation.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/webservices/services-youtube/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/webservices/services-youtube/intro.xml +++ peardoc/ja/package/webservices/services-youtube/intro.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.webservices.services-youtube.intro"> <refnamediv> <refname>導入</refname> <refpurpose>Services_YouTube の紹介</refpurpose> </refnamediv> <refsect1 id="package.webservices.services-youtube.intro.refsect1"> <title>Services_YouTube の紹介</title> <para> Services_YouTube は、YouTube ウェブサービスの API を抽象化したものです。 YouTube API を使用すると、急速に拡大し続ける YouTube のオンライン画像を 自分のアプリケーションと容易に統合することができます。 YouTube API およびこのパッケージを使用するには、 YouTube アカウントおよび YouTube 開発者プロファイルを作成しなければなりません。 </para> <para> YouTube API が現在提供しているのは、 YouTube 画像リポジトリやユーザコミュニティの一部に対する読み込みアクセスのみです。 Services_YouTube が提供する機能は、 YouTube API に対してオブジェクト指向で抽象化したアクセスを行うことです。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=webservices fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/webservices/services-youtube/example.xml?view=markup&rev=1.1 Index: peardoc/ja/package/webservices/services-youtube/example.xml +++ peardoc/ja/package/webservices/services-youtube/example.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry id="package.webservices.services-youtube.example"> <refnamediv> <refname>例</refname> <refpurpose>Services_YouTube の基本的な使用法</refpurpose> </refnamediv> <refsect1 id="package.webservices.services-youtube.example.refsect1"> <title>Services_YouTube の基本的な使用法</title> <simpara> 以下の例で、 Services_YouTube の基本的な使用法を示します。 </simpara> <example> <title>一般に公開しているユーザプロファイルの取得</title> <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} Watched.)\n"; ]]> </programlisting> </example> <example> <title>ユーザのお気に入り画像の一覧表示</title> <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)); $videos = $youtube->listFavoriteVideos($user_id); foreach ($videos->xpath('//video') as $i => $video) { print "<img src='{$video->thumbnail_url}' alt='{$video->title}' />\n"; print "<a href='{$video->url}'>URL</a><br />\n"; } ]]> </programlisting> </example> <example> <title>ユーザの友人の一覧表示</title> <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)); $users = $youtube->listFriends($user_id); foreach ($users->xpath('//friend') as $i => $friend) { print "{$friend->user} : Upload: {$friend->video_upload_count}"; } ]]> </programlisting> </example> <example> <title>指定したタグがついているすべての画像の一覧表示</title> <programlisting role="php"> <![CDATA[require_once 'Services/YouTube.php'; $dev_id = "YOUR_DEV_ID"; $tag = "test"; $youtube = new Services_YouTube($dev_id, array('usesCache' => true)); $videos = $youtube->listByTag($tag); foreach ($videos->xpath('//video') as $i => $video) { print "<img src='{$video->thumbnail_url}' alt='{$video->title}' />\n"; print "<a href='{$video->url}'>URL</a><br />\n"; } ]]> </programlisting> </example> <example> <title>指定したユーザがアップロードしたすべての画像の一覧表示</title> <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)); $videos = $youtube->listByUser($user_id); foreach ($videos->xpath('//video') as $i => $video) { print "<img src='{$video->thumbnail_url}' alt='{$video->title}' />\n"; print "<a href='{$video->url}'>URL</a><br />\n"; } ]]> </programlisting> </example> <example> <title> YouTube のトップページに掲載された、最近の 25 本の画像の一覧表示 </title> <programlisting role="php"> <![CDATA[require_once 'Services/YouTube.php'; $dev_id = "YOUR_DEV_ID"; $youtube = new Services_YouTube($dev_id, array('usesCache' => true)); $videos = $youtube->listFeatured(); foreach ($videos->xpath('//video') as $i => $video) { print "<img src='{$video->thumbnail_url}' alt='{$video->title}' />\n"; print "<a href='{$video->url}'>URL</a><br />\n"; } ]]> </programlisting> </example> <example> <title>画像の詳細情報の表示</title> <programlisting role="php"> <![CDATA[require_once 'Services/YouTube.php'; $dev_id = "YOUR_DEV_ID"; $video_id = "VIDEO_ID"; $youtube = new Services_YouTube($dev_id, array('usesCache' => true)); $video = $youtube->getDetails($video_id); $details = $video->video_details; print "{$details->title} : ({$details->tags}) : RATE: {$details->rating_avg} in {$detials->rating_count}"; print "<img src='{$details->thumbnail_url}' alt={$details->title}><hr /><hr />"; foreach ($details->xpath('//comment') as $i => $comment) { print "{$comment->author} : {$comment->text}<hr />"; } ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=webservices fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/webservices/services-youtube.xml?view=markup&rev=1.1 Index: peardoc/ja/package/webservices/services-youtube.xml +++ peardoc/ja/package/webservices/services-youtube.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.webservices.services-youtube"> <title>Services_YouTube</title> <para> YouTube API を、オブジェクト指向で抽象化したものです。 </para> &package.webservices.services-youtube.intro; &package.webservices.services-youtube.example; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=webservices fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#9389) next »