Przeglądaj źródła

Removes docs for Zend_Gdata_YouTube

Frank Brückner 9 lat temu
rodzic
commit
c53fb95220

+ 0 - 8
documentation/manual/de/module_specs/Zend_Gdata-Introduction.xml

@@ -61,14 +61,6 @@
 
             <listitem>
                 <para>
-                    <link linkend="zend.gdata.youtube">YouTube</link> bietet die Möglichkeit Videos,
-                    Kommentare, Favoriten, Einschreibungen, Benutzerprofile und vieles mehr zu
-                    Suchen und zu Empfangen.
-                </para>
-            </listitem>
-
-            <listitem>
-                <para>
                     <link linkend="zend.gdata.photos">Picasa Web Album</link> bietet eine online
                     Photo Sharing Anwendung.
                 </para>

+ 0 - 703
documentation/manual/de/module_specs/Zend_Gdata_YouTube.xml

@@ -1,703 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 24249 -->
-<!-- Reviewed: no -->
-<sect1 id="zend.gdata.youtube">
-    <title>Verwenden der YouTube Daten API</title>
-
-    <para>
-        Die YouTube Daten <acronym>API</acronym> bietet einen Lese- und Schreibzugriff auf YouTube
-        Inhalte. Benutzer können nicht authentifizierte Anfragen zu Google Daten Feeds durchführen
-        um Feeds von populären Videos, Kommentare, öffentliche Informationen über YouTube
-        Benutzerprofilen, Benutzer PlayListen, Favoriten, Einschreibungen und so weiter zu erhalten.
-    </para>
-
-    <para>
-        Für weitere Informationen über die YouTube Daten <acronym>API</acronym> schauen Sie in die
-        offizielle <ulink
-            url="http://code.google.com/apis/youtube/developers_guide_php.html"><acronym>PHP</acronym>
-            Entwickler Dokumentation</ulink> auf code.google.com.
-    </para>
-
-    <sect2 id="zend.gdata.youtube.authentication">
-        <title>Authentifizierung</title>
-
-        <para>
-            Die YouTube Daten <acronym>API</acronym> erlaubt aktuell einen nur-lesenden Zugriff auf
-            öffentliche Daten, welcher keine Authentifizierung benötigt. Für alle schreibenden
-            Anfragen muß sich ein Benutzer entweder mit ClientLogin oder AuthSub authentifizieren.
-            Schauen Sie bitte in das <ulink
-                url="http://code.google.com/apis/youtube/developers_guide_php.html#Authentication">Kapitel
-                über Authentifizierung in der <acronym>PHP</acronym> Entwickler
-                Dokumentation</ulink> für weitere Details.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.developer_key">
-        <title>Entwickler Schlüssel und Client ID</title>
-
-        <para>
-            Ein Entwickler Schlüssel identifiziert den QouTube Entwickler der die
-            <acronym>API</acronym> Anfrage schickt. Eine Client ID identifiziert die Anwendung für
-            Logging und Debugging Zwecke. Schauen Sie bitte auf <ulink
-                url="http://code.google.com/apis/youtube/dashboard/">http://code.google.com/apis/youtube/dashboard/</ulink>
-            um einen Entwickler Schlüssel und eine Client ID zu erhalten. Das angefügte Beispiel
-            demonstriert wie der Entwickler Schlüssel und die Client ID an das <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube.html">Zend_Gdata_YouTube</ulink>
-            Service Pbjekt übergeben werden.
-        </para>
-
-        <example id="zend.gdata.youtube.developer_key.example">
-
-            <title>
-                Einen Entwicklerschlüssel und eine ClientID an Zend_Gdata_YouTube übergeben
-            </title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient,
-                             $applicationId,
-                             $clientId,
-                             $developerKey);
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.videos">
-        <title>Öffentliche Video Feeds empfangen</title>
-
-        <para>
-            Die YouTube Daten <acronym>API</acronym> bietet eine Vielzahl von Feeds die eine Liste
-            von Videos zurückgeben, wie zum Beispiel Standard Feeds, Abhängige Videos, Antworten auf
-            Videos, Videobewertungen, Benutzer Uploads, und Benutzer Favoriten. Zum Beispiel gibt
-            der Benutzer Upload Feed alle Videos zurück die von einem speziellen Benutzer
-            hochgeladen wurden. Sehen Sie in den <ulink
-                url="http://code.google.com/apis/youtube/reference.html#Video_Feeds">You Tube
-                <acronym>API</acronym> Referenz Guide</ulink> für eine detailierte Liste aller
-            vorhandenen Feeds.
-        </para>
-
-        <sect3 id="zend.gdata.youtube.videos.searching">
-            <title>Suchen nach Videos durch Metadaten</title>
-
-            <para>
-                Man kann eine Liste von Videos erhalten die einem speziellen Suchkriterium
-                entsprechen, indem die YouTubeQuery Klasse verwendet wird. Die folgende Abfrage
-                schaut nach Videos welche das Wort "Katze" in Ihren Metadaten enthalten, beginnend
-                mit dem 10ten Video und 20 Videos pro Seite anzeigt, sortiert nach der Anzahl der
-                Ansichten.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.searching.example">
-                <title>Suchen nach Videos</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->videoQuery = 'cat';
-$query->startIndex = 10;
-$query->maxResults = 20;
-$query->orderBy = 'viewCount';
-
-echo $query->queryUrl . "\n";
-$videoFeed = $yt->getVideoFeed($query);
-
-foreach ($videoFeed as $videoEntry) {
-    echo "---------VIDEO----------\n";
-    echo "Titel: " . $videoEntry->mediaGroup->title->text . "\n";
-    echo "\nBeschreibung:\n";
-    echo $videoEntry->mediaGroup->description->text;
-    echo "\n\n\n";
-}
-]]></programlisting>
-            </example>
-
-            <para>
-                Für weitere Details über die verschiedenen Abfrageparameter, kann der <ulink
-                    url="http://code.google.com/apis/youtube/reference.html#Searching_for_videos">Referenz
-                    Guide</ulink> hilfreich sein. Die vorhandenen Hilfsfunktionen in <ulink
-                    url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoQuery.html">
-                    <classname>Zend_Gdata_YouTube_VideoQuery</classname></ulink> für jeden dieser
-                Parameter werden im <ulink
-                    url="http://code.google.com/apis/youtube/developers_guide_php.html#SearchingVideos">PHP
-                    Entwickler Guide</ulink> detailierter beschrieben.
-            </para>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.searchingcategories">
-            <title>Suchen nach Videos durch Kategorien und Tags/Schlüsselwörter</title>
-
-            <para>
-                Die Suche nach Videos in speziellen Kategorien wird durch die Erstellung einer
-                <ulink url="http://code.google.com/apis/youtube/reference.html#Category_Search">
-                speziell formatierten <acronym>URL</acronym></ulink> durchgeführt. Um, zum Beispiel,
-                nach Komödien-Videos zu suchen die das Schlüsselwort Hund enthalten:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.searchingcategories.example">
-                <title>Suchen nach Videos in speziellen Kategorien</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->category = 'Comedy/Hund';
-
-echo $query->queryUrl . "\n";
-$videoFeed = $yt->getVideoFeed($query);
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.standard">
-            <title>Standard Feeds empfangen</title>
-
-            <para>
-                Die YouTube Daten <acronym>API</acronym> hat eine Anzahl an <ulink
-                    url="http://code.google.com/apis/youtube/reference.html#Standard_feeds">Standard
-                    Feeds</ulink>. Diese Standard Feeds können als <ulink
-                    url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoFeed.html">Zend_Gdata_YouTube_VideoFeed</ulink>
-                Objekte empfangen werden indem die spezifizierten <acronym>URL</acronym>s und die in
-                der <ulink
-                    url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube.html">Zend_Gdata_YouTube</ulink>
-                Klasse vordefinierten Konstanten (zum Beispiel
-                Zend_Gdata_YouTube::STANDARD_TOP_RATED_URI) oder die vordefinierten Hilfsmethoden
-                verwendet verwendet werden (siehe das Codebeispiel anbei).
-            </para>
-
-            <para>
-                Um die Top gereihten Videos zu erhalten kann die folgende Helfermethode verwendet
-                werden:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.standard.example-1">
-                <title>Empfangen eines Standard Videofeeds</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getTopRatedVideoFeed();
-]]></programlisting>
-            </example>
-
-            <para>
-                Es gibt auch Abfrageparameter um eine Zeitperiode zu spezifizieren über die der
-                Standardfeed berechnet wird.
-            </para>
-
-            <para>
-                Um zum Beispiel die Top gereihten Videos von Heute zu erhalten:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.standard.example-2">
-                <title>Verwenden von Zend_Gdata_YouTube_VideoQuery um Videos zu empfangen</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->setTime('today');
-$videoFeed = $yt->getTopRatedVideoFeed($query);
-]]></programlisting>
-            </example>
-
-            <para>
-                Alternativ kann man den Feed erhalten indem die <acronym>URL</acronym> verwendet
-                wird:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.standard.example-3">
-                <title>Empfangen eines Video Feeds durch die URL</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$url = 'http://gdata.youtube.com/feeds/standardfeeds/top_rated?time=today'
-$videoFeed = $yt->getVideoFeed($url);
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.user">
-            <title>Videos erhalten die von einem Benutzer hochgeladen wurden</title>
-
-            <para>
-                Man kann eine Liste von Videos erhalten die von einem bestimmten Benutzer
-                hochgeladen wurden indem eine einfache Helfermethode verwendet wird. Dieses Beispiel
-                empfängt Videos die vom Benutzer 'liz' hochgeladen wurden.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.user.example">
-                <title>
-                    Empfangen von Videos die von einem spezifischen Benutzer hochgeladen wurden
-                </title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getUserUploads('liz');
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.favorites">
-            <title>Videos empfangen die von einem Benutzer bevorzugt werden</title>
-
-            <para>
-                Man kann eine Liste von bevorzugten Videos eines Benutzer erhalten indem eine
-                einfache Helfermethode verwendet wird. Dieses Beispiel empfängt Videos die vom
-                Benutzer 'liz' bevorzugt werden.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.favorites.example">
-                <title>Empfangen von den bevorzugten Videos eines Benutzers</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getUserFavorites('liz');
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.responses">
-            <title>Videobewertungen für ein Video erhalten</title>
-
-            <para>
-                Man kann eine Liste von Videobewertungen eines Videos erhalten indem eine einfache
-                Helfermethode verwendet wird. Dieses Beispiel empfängt Videobewertungen für ein
-                Video mit der ID 'abc123813abc'.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.responses.example">
-                <title>Empfangen eines Feeds von Video Antworten</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getVideoResponseFeed('abc123813abc');
-]]></programlisting>
-            </example>
-        </sect3>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.comments">
-        <title>Videokommentare erhalten</title>
-
-        <para>
-            Die Kommentare für jedes YouTube Video können auf unterschiedlichen Wegen empfangen
-            werden. Um die Kommentare für das Video mit der ID 'abc123813abc' zu empfangen kann der
-            folgende Code verwendet werden:
-        </para>
-
-        <example id="zend.gdata.youtube.videos.comments.example-1">
-            <title>Empfangen eines Feeds von Videokommentaren von einer Video ID</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$commentFeed = $yt->getVideoCommentFeed('abc123813abc');
-
-foreach ($commentFeed as $commentEntry) {
-    echo $commentEntry->title->text . "\n";
-    echo $commentEntry->content->text . "\n\n\n";
-}
-]]></programlisting>
-        </example>
-
-        <para>
-            Kommentare können für ein Video auch empfangen werden wenn man eine Kopie des <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            Objektes hat:
-        </para>
-
-        <example id="zend.gdata.youtube.videos.comments.example-2">
-            <title>
-                Empfangen eines Feeds von Videokommentaren von einem Zend_Gdata_YouTube_VideoEntry
-            </title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoEntry = $yt->getVideoEntry('abc123813abc');
-// Die ID des Videos in diesem Beispiel ist unbekannt, aber wir haben die URL
-$commentFeed = $yt->getVideoCommentFeed(null,
-                                        $videoEntry->comments->href);
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.playlists">
-        <title>PlayList Feeds erhalten</title>
-
-        <para>
-            Die YouTube Daten <acronym>API</acronym> bietet Informationen über Benutzer, inklusive
-            Profile, PlayListen, Einschreibungen, und weitere.
-        </para>
-
-        <sect3 id="zend.gdata.youtube.playlists.user">
-            <title>Die PlayListen eines Benutzer erhalten</title>
-
-            <para>
-                Die Bibliothek bietet eine Helfermethode um die PlayListen, die einem angegebenen
-                Benutzer zugeordnet sind, zu erhalten. Um die PlayListen des Benutzers 'liz' zu
-                erhalten kann der folgende Code verwendet werden:
-            </para>
-
-            <example id="zend.gdata.youtube.playlists.user.example">
-                <title>Empfangen von Playlisten eines Benutzers</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$playlistListFeed = $yt->getPlaylistListFeed('liz');
-
-foreach ($playlistListFeed as $playlistEntry) {
-    echo $playlistEntry->title->text . "\n";
-    echo $playlistEntry->description->text . "\n";
-    echo $playlistEntry->getPlaylistVideoFeedUrl() . "\n\n\n";
-}
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.playlists.special">
-            <title>Eine spezielle PlayListe erhalten</title>
-
-            <para>
-                Die Bibliothek bietet eine Helfermethode um Videos zu erhalten die mit einer
-                gegebenen PlayListe assoziiert sind. Um die PlayListe für einen speziellen PlayList
-                Eintrag zu erhalten kann der folgende Code verwendet werden:
-            </para>
-
-            <example id="zend.gdata.youtube.playlists.special.example">
-                <title>Empfangen von speziellen Playlisten</title>
-
-                <programlisting language="php"><![CDATA[
-$feedUrl = $playlistEntry->getPlaylistVideoFeedUrl();
-$playlistVideoFeed = $yt->getPlaylistVideoFeed($feedUrl);
-]]></programlisting>
-            </example>
-        </sect3>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.subscriptions">
-        <title>Eine Liste von Einschreibungen eines Benutzers erhalten</title>
-
-        <para>
-            Ein Benutzer kann verschiedene Arten von Einschreibungen besitzen: Kanal
-            Einschreibungen, Tag Einschreibungen, oder Favoriten Einschreibungen. Ein <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_SubscriptionEntry.html">Zend_Gdata_YouTube_SubscriptionEntry</ulink>
-            wird verwendet um individuelle Einschreibungen zu repräsentieren.
-        </para>
-
-        <para>
-            Um alle Einschreibungen für den Benutzer 'liz' zu erhalten kann der folgende Code
-            verwendet werden:
-        </para>
-
-        <example id="zend.gdata.youtube.subscriptions.example">
-            <title>Empfangen aller Einschreibungen eines Benutzers</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$subscriptionFeed = $yt->getSubscriptionFeed('liz');
-
-foreach ($subscriptionFeed as $subscriptionEntry) {
-    echo $subscriptionEntry->title->text . "\n";
-}
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.profile">
-        <title>Ein Benutzerprofil erhalten</title>
-
-        <para>
-            Die öffentlichen Profil Informationen kann man für jeden YouTube Benutzer erhalten. Um
-            das Profil für den Benutzer 'liz' zu erhalten kann der folgende Code verwendet werden:
-        </para>
-
-        <example id="zend.gdata.youtube.profile.example">
-            <title>Empfangen des Profils eines Benutzers</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$userProfile = $yt->getUserProfile('liz');
-echo "Benutzername: " . $userProfile->username->text . "\n";
-echo "Alter: " . $userProfile->age->text . "\n";
-echo "Heimatstadt: " . $userProfile->hometown->text . "\n";
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads">
-        <title>Videos auf YouTube hochladen</title>
-
-        <para>
-            Stellen Sie sicher das Sie die Diagramme im <ulink
-                url="http://code.google.com/apis/youtube/developers_guide_protocol.html#Process_Flows_for_Uploading_Videos">Protokoll
-                Guide</ulink> auf code.google.com für eine Übersicht des Upload Prozesses betrachtet
-            haben. Das Hochladen von Videos kann auf 2 Wegen durchgeführt werden: Entweder durch das
-            direkte Hochladen des Videos oder durch das Senden der Video Meta-Daten und indem der
-            Benutzer das Video über ein <acronym>HTML</acronym> Formular hochlädt.
-        </para>
-
-        <para>
-            Um ein Video direkt hochzuladen, muß zuerst ein neues <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            Objekt erstellt und einige benötigte Meta-Daten spezifiziert werden. Das folgende
-            Beispiel zeigt das Hochladen des Quicktime Videos "mytestmovie.mov" auf YouTube mit den
-            folgenden Eigenschaften:
-        </para>
-
-        <table id="zend.gdata.youtube.uploads.metadata">
-            <title>Metadaten die im folgenden Code-Beispiel verwendet werden</title>
-
-            <tgroup cols="2" align="left" colsep="1" rowsep="1">
-                <thead>
-                    <row>
-                        <entry>Eigenschaft</entry>
-                        <entry>Wert</entry>
-                    </row>
-                </thead>
-
-                <tbody>
-                    <row>
-                        <entry>Title</entry>
-                        <entry>My Test Movie</entry>
-                    </row>
-
-                    <row>
-                        <entry>Category</entry>
-                        <entry>Autos</entry>
-                    </row>
-
-                    <row>
-                        <entry>Keywords</entry>
-                        <entry>cars, funny</entry>
-                    </row>
-
-                    <row>
-                        <entry>Description</entry>
-                        <entry>My description</entry>
-                    </row>
-
-                    <row>
-                        <entry>Filename</entry>
-                        <entry>mytestmovie.mov</entry>
-                    </row>
-
-                    <row>
-                        <entry>File <acronym>MIME</acronym> type</entry>
-                        <entry>video/quicktime</entry>
-                    </row>
-
-                    <row>
-                        <entry>Video private?</entry>
-                        <entry><constant>FALSE</constant></entry>
-                    </row>
-
-                    <row>
-                        <entry>Video location</entry>
-                        <entry>37, -122 (lat, long)</entry>
-                    </row>
-
-                    <row>
-                        <entry>Developer Tags</entry>
-                        <entry>mydevelopertag, anotherdevelopertag</entry>
-                    </row>
-                </tbody>
-            </tgroup>
-        </table>
-
-        <para>
-            Der folgende Code erzeugt einen leeren <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            der Hochgeladen werden kann. Ein <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_App_MediaFileSource.html">Zend_Gdata_App_MediaFileSource</ulink>
-            wird dann verwendet um die aktuelle Video Datei zu speichern. Unter der Hand wird ein
-            <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_Extension_MediaGroup.html">Zend_Gdata_YouTube_Extension_MediaGroup</ulink>
-            Objekt verwendet um alle Metadaten des Videos zu speichern. Die anbei beschriebenen
-            Helfermethoden erlauben es die Metadaten des Videos zu setzen ohne das man sich um das
-            Medien Gruppen Objekt kümmern muß. $uploadUrl ist der Ort an den der neue Eintrag
-            gepostet wird. Er kann entweder durch $userName des aktuell authentifizierten Benutzers
-            spezifiziert werden, oder, alternativ indem einfach der String 'default' verwendet wird
-            um auf den aktuell authentifizierten Benutzer zu verweisen.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.example">
-            <title>Ein Video hochladen</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient);
-$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
-
-$filesource = $yt->newMediaFileSource('mytestmovie.mov');
-$filesource->setContentType('video/quicktime');
-$filesource->setSlug('mytestmovie.mov');
-
-$myVideoEntry->setMediaSource($filesource);
-
-$myVideoEntry->setVideoTitle('My Test Movie');
-$myVideoEntry->setVideoDescription('My Test Movie');
-// Beachte das category eine gültige YouTube Kategorie sein muß !
-$myVideoEntry->setVideoCategory('Comedy');
-
-// Setzt Keywords, beachte das es ein Komma getrennter String ist
-// und das keines der Schlüsselwörter ein Leerzeichen enthalten darf
-$myVideoEntry->SetVideoTags('cars, funny');
-
-// Optional Entwickler Tags setzen
-$myVideoEntry->setVideoDeveloperTags(array('mydevelopertag',
-                                           'anotherdevelopertag'));
-
-// Optional den Ort des Videos setzen
-$yt->registerPackage('Zend_Gdata_Geo');
-$yt->registerPackage('Zend_Gdata_Geo_Extension');
-$where = $yt->newGeoRssWhere();
-$position = $yt->newGmlPos('37.0 -122.0');
-$where->point = $yt->newGmlPoint($position);
-$myVideoEntry->setWhere($where);
-
-// URI hochladen für den aktuell authentifizierten Benutzer
-$uploadUrl =
-    'http://uploads.gdata.youtube.com/feeds/users/default/uploads';
-
-// Versuch das Video hochzuladen, eine Zend_Gdata_App_HttpException fangen wenn
-// Sie vorhanden ist oder nur eine reguläre Zend_Gdata_App_Exception
-
-try {
-    $newEntry = $yt->insertEntry($myVideoEntry,
-                                 $uploadUrl,
-                                 'Zend_Gdata_YouTube_VideoEntry');
-} catch (Zend_Gdata_App_HttpException $httpException) {
-    echo $httpException->getRawResponseBody();
-} catch (Zend_Gdata_App_Exception $e) {
-    echo $e->getMessage();
-}
-]]></programlisting>
-        </example>
-
-        <para>
-            Um ein Video als privat hochzuladen muß einfach $myVideoEntry->setVideoPrivate();
-            verwendet werden; bevor das Hochladen durchgeführt wird. $videoEntry->isVideoPrivate()
-            kann verwendet werden um zu prüfen ob ein Video Eintrag privat ist oder nicht.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads.browser">
-        <title>Browser-basierender Upload</title>
-
-        <para>
-            Browser-basierendes hochladen wird fast auf die gleiche Weise durchgeführt wie direktes
-            Hochladen, ausser das man kein <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_App_MediaFileSource.html">Zend_Gdata_App_MediaFileSource</ulink>
-            Objekt an den <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            anhängt den man erstellt. Stattdessen überträgt man einfach alle Metadaten des Videos um
-            ein Token Element zurück zu erhalten welches verwendet werden kann um ein
-            <acronym>HTML</acronym> Upload Formular zu erstellen.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.browser.example-1">
-            <title>Browser-basierender Upload</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient);
-
-$myVideoEntry= new Zend_Gdata_YouTube_VideoEntry();
-$myVideoEntry->setVideoTitle('My Test Movie');
-$myVideoEntry->setVideoDescription('My Test Movie');
-
-// Beachte das die Kategorie eine gültige YouTube Kategorie sein muß !
-$myVideoEntry->setVideoCategory('Comedy');
-$myVideoEntry->SetVideoTags('cars, funny');
-
-$tokenHandlerUrl = 'http://gdata.youtube.com/action/GetUploadToken';
-$tokenArray = $yt->getFormUploadToken($myVideoEntry, $tokenHandlerUrl);
-$tokenValue = $tokenArray['token'];
-$postUrl = $tokenArray['url'];
-]]></programlisting>
-        </example>
-
-        <para>
-            Der obige Code gibt einen Link und ein Token aus das verwendet wird um ein
-            <acronym>HTML</acronym> Formular zu erstellen und im Browser des Benutzers anzuzeigen.
-            Ein einfaches Beispielformular wird unten gezeigt mit $tokenValue welches den Inhalt des
-            zurückgegebenen Token Elements darstellt, welches wie gezeigt, oben von $myVideoEntry
-            empfangen wird. Damit der Benutzer, nachdem das Formular übermittelt wurde, auf die
-            Website umgeleitet wird, muß ein $nextUrl Parameter an die $postUrl von oben angehängt
-            werden, was auf die gleiche Weise funktioniert wie der $next Parameter eines AuthSub
-            Links. Der einzige Unterschied ist hier das, statt eines einmal zu verwendenden Tokens,
-            ein Status und eine ID Variable in der <acronym>URL</acronym> zurückgegeben werden.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.browser.example-2">
-            <title>Browser-basierender Upload: Erstellen des HTML Formulars</title>
-
-            <programlisting language="php"><![CDATA[
-// Platzieren um den Benutzer nach dem Upload umzuleiten
-$nextUrl = 'http://mysite.com/youtube_uploads';
-
-$form = '<form action="'. $postUrl .'?nexturl='. $nextUrl .
-        '" method="post" enctype="multipart/form-data">'.
-        '<input name="file" type="file"/>'.
-        '<input name="token" type="hidden" value="'. $tokenValue .'"/>'.
-        '<input value="Video Daten hochladen" type="submit" />'.
-        '</form>';
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads.status">
-        <title>Den Upload Status prüfen</title>
-
-        <para>
-             Nachdem ein Video hochgeladen wurde, wird es im Upload Feed des authentifizierten
-             Benutzer unmittelbar sichtbar sein. Trotzdem wird es auf der Site nicht öffentlich sein
-             solange es nicht bearbeitet wurde. Videos die ausgeschlossen oder nicht erfolgreich
-             hochgeladen wurden werden auch nur im Upload Feed des authentifizierten Benutzers
-             sichtbar sein. Der folgende Code prüft den Status eines <ulink
-                 url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-             um zu sehen ob er jetzt noch nicht live ist oder ob er nicht akzeptiert wurde.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.status.example">
-            <title>Den Status von Video Uploads checken</title>
-
-            <programlisting language="php"><![CDATA[
-try {
-    $control = $videoEntry->getControl();
-} catch (Zend_Gdata_App_Exception $e) {
-    echo $e->getMessage();
-}
-
-if ($control instanceof Zend_Gdata_App_Extension_Control) {
-    if ($control->getDraft() != null &&
-        $control->getDraft()->getText() == 'yes') {
-        $state = $videoEntry->getVideoState();
-
-        if ($state instanceof Zend_Gdata_YouTube_Extension_State) {
-            print 'Upload Status: '
-                  . $state->getName()
-                  .' '. $state->getText();
-        } else {
-            print 'Die Status Informationen des Videos konnten bis jetzt nicht'
-                . ' empfangen werden. Bitte versuchen Sie es etwas später'
-                . ' nochmals.\n";
-        }
-    }
-}
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.other">
-        <title>Andere Funktionen</title>
-
-        <para>
-            Zusätzlich zur oben beschriebenen Funktionalität, enthält die YouTube
-            <acronym>API</acronym> viele andere Funktionen die es erlauben Video Metadaten zu
-            verändern, Video Einträge zu löschen und den kompletten Bereich an Community Features
-            der Site zu verwenden. Einige der Community Features die durch die
-            <acronym>API</acronym> verändert werden können enthalten: Ratings, Kommentare,
-            Playlisten, Einschreibungen, Benutzer Profile, Kontakte und Nachrichten.
-        </para>
-
-        <para>
-            Bitte schauen Sie in die komplette Dokumentation die im
-            <ulink url="http://code.google.com/apis/youtube/developers_guide_php.html">PHP
-                Entwickler Guide</ulink> auf code.google.com zu finden ist.
-        </para>
-    </sect2>
-</sect1>

+ 0 - 1
documentation/manual/en/manual-print1.xml.in

@@ -243,7 +243,6 @@
         <xi:include href="module_specs/Zend_Gdata_Spreadsheets.xml" />
         <xi:include href="module_specs/Zend_Gdata_Gapps.xml" />
         <xi:include href="module_specs/Zend_Gdata_Photos.xml" />
-        <xi:include href="module_specs/Zend_Gdata_YouTube.xml" />
         <xi:include href="module_specs/Zend_Gdata_Exception.xml" />
     </chapter>
 

+ 0 - 5
documentation/manual/en/manual.xml.in

@@ -1091,11 +1091,6 @@
                     <xi:include href="../en/module_specs/Zend_Gdata_Photos.xml" />
                 </xi:fallback>
             </xi:include>
-            <xi:include href="module_specs/Zend_Gdata_YouTube.xml">
-                <xi:fallback>
-                    <xi:include href="../en/module_specs/Zend_Gdata_YouTube.xml" />
-                </xi:fallback>
-            </xi:include>
             <xi:include href="module_specs/Zend_Gdata_Exception.xml">
                 <xi:fallback>
                     <xi:include href="../en/module_specs/Zend_Gdata_Exception.xml" />

+ 0 - 9
documentation/manual/en/module_specs/Zend_Gdata-Introduction.xml

@@ -60,15 +60,6 @@
 
             <listitem>
                 <para>
-                    <link linkend="zend.gdata.youtube">YouTube</link>
-                    provides the ability to search and retrieve videos,
-                    comments, favorites, subscriptions, user profiles
-                    and more.
-                </para>
-            </listitem>
-
-            <listitem>
-                <para>
                     <link linkend="zend.gdata.photos">Picasa Web Albums</link>
                     provides an online photo sharing application.
                 </para>

+ 0 - 685
documentation/manual/en/module_specs/Zend_Gdata_YouTube.xml

@@ -1,685 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Reviewed: no -->
-<sect1 id="zend.gdata.youtube">
-    <title>Using the YouTube Data API</title>
-
-    <para>
-        The YouTube Data <acronym>API</acronym> offers read and write access to YouTube's content.
-        Users can perform unauthenticated requests to Google Data feeds to
-        retrieve feeds of popular videos, comments, public information about
-        YouTube user profiles, user playlists, favorites, subscriptions and so on.
-    </para>
-
-    <para>
-        For more information on the YouTube Data <acronym>API</acronym>, please refer
-        to the official <ulink
-            url="http://code.google.com/apis/youtube/developers_guide_php.html"><acronym>PHP</acronym>
-            Developer's Guide</ulink> on code.google.com.
-    </para>
-
-    <sect2 id="zend.gdata.youtube.authentication">
-        <title>Authentication</title>
-
-        <para>
-            The YouTube Data <acronym>API</acronym> allows read-only access to public data, which
-            does not require authentication. For any write requests, a user
-            needs to authenticate either using ClientLogin or AuthSub authentication. Please refer
-            to the <ulink
-                url="http://code.google.com/apis/youtube/developers_guide_php.html#Authentication">Authentication
-                section in the <acronym>PHP</acronym> Developer's Guide</ulink> for more detail.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.developer_key">
-        <title>Developer Keys and Client ID</title>
-
-        <para>
-            A developer key identifies the YouTube developer that is submitting
-            an <acronym>API</acronym> request. A client ID identifies your application for logging
-            and debugging purposes. Please visit <ulink
-                url="http://code.google.com/apis/youtube/dashboard/">http://code.google.com/apis/youtube/dashboard/</ulink>
-            to obtain a developer key and client ID. The example below demonstrates how to pass the
-            developer key and client ID to the <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube.html">Zend_Gdata_YouTube</ulink>
-            service object.
-        </para>
-
-        <example id="zend.gdata.youtube.developer_key.example">
-            <title>Passing a Developer Key and ClientID to Zend_Gdata_YouTube</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient,
-                             $applicationId,
-                             $clientId,
-                             $developerKey);
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.videos">
-        <title>Retrieving public video feeds</title>
-
-        <para>
-            The YouTube Data <acronym>API</acronym> provides numerous feeds that return a list of
-            videos, such as standard feeds, related videos, video responses,
-            user's uploads, and user's favorites. For example, the
-            user's uploads feed returns all videos uploaded by a specific user. See the <ulink
-                url="http://code.google.com/apis/youtube/reference.html#Video_Feeds">YouTube
-                <acronym>API</acronym> reference guide</ulink> for a detailed list of available
-            feeds.
-        </para>
-
-        <sect3 id="zend.gdata.youtube.videos.searching">
-            <title>Searching for videos by metadata</title>
-
-            <para>
-                You can retrieve a list of videos that match specified
-                search criteria, using the YouTubeQuery class. The following query
-                looks for videos which contain the word "cat" in their
-                metadata, starting with the 10th video and displaying 20
-                videos per page, ordered by the view count.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.searching.example">
-                <title>Searching for videos</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->videoQuery = 'cat';
-$query->startIndex = 10;
-$query->maxResults = 20;
-$query->orderBy = 'viewCount';
-
-echo $query->queryUrl . "\n";
-$videoFeed = $yt->getVideoFeed($query);
-
-foreach ($videoFeed as $videoEntry) {
-    echo "---------VIDEO----------\n";
-    echo "Title: " . $videoEntry->getVideoTitle() . "\n";
-    echo "\nDescription:\n";
-    echo $videoEntry->getVideoDescription();
-    echo "\n\n\n";
-}
-]]></programlisting>
-            </example>
-
-            <para>
-                For more details on the different query parameters, please refer to the <ulink
-                    url="http://code.google.com/apis/youtube/reference.html#Searching_for_videos">
-                    Reference Guide</ulink>. The available helper functions in <ulink
-                    url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoQuery.html"><classname>Zend_Gdata_YouTube_VideoQuery</classname></ulink>
-                for each of these parameters are described in more detail in the <ulink
-                    url="http://code.google.com/apis/youtube/developers_guide_php.html#SearchingVideos">PHP
-                    Developer's Guide</ulink>.
-            </para>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.searchingcategories">
-            <title>Searching for videos by categories and tags/keywords</title>
-
-            <para>
-                Searching for videos in specific categories is done by generating a <ulink
-                    url="http://code.google.com/apis/youtube/reference.html#Category_search">specially
-                    formatted <acronym>URL</acronym></ulink>. For example, to search for
-                comedy videos which contain the keyword dog:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.searchingcategories.example">
-                <title>Searching for videos in specific categories</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->category = 'Comedy/dog';
-
-echo $query->queryUrl . "\n";
-$videoFeed = $yt->getVideoFeed($query);
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.standard">
-            <title>Retrieving standard feeds</title>
-
-            <para>
-                The YouTube Data <acronym>API</acronym> has a number of <ulink
-                    url="http://code.google.com/apis/youtube/reference.html#Standard_feeds">standard
-                    feeds</ulink>. These standard feeds can be retrieved as <ulink
-                    url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoFeed.html">Zend_Gdata_YouTube_VideoFeed</ulink>
-                objects using the specified <acronym>URL</acronym>s, using the predefined constants
-                within the <ulink
-                    url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube.html">Zend_Gdata_YouTube</ulink>
-                class (Zend_Gdata_YouTube::STANDARD_TOP_RATED_URI for example) or
-                using the predefined helper methods (see code listing below).
-            </para>
-
-            <para>
-                To retrieve the top rated videos using the helper method:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.standard.example-1">
-                <title>Retrieving a standard video feed</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getTopRatedVideoFeed();
-]]></programlisting>
-            </example>
-
-            <para>
-                There are also query parameters to specify the time period
-                over which the standard feed is computed.
-            </para>
-
-            <para>
-                For example, to retrieve the top rated videos for today:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.standard.example-2">
-                <title>Using a Zend_Gdata_YouTube_VideoQuery to Retrieve Videos</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->setTime('today');
-$videoFeed = $yt->getTopRatedVideoFeed($query);
-]]></programlisting>
-            </example>
-
-            <para>
-                Alternatively, you could just retrieve the feed using the
-                <acronym>URL</acronym>:
-            </para>
-
-            <example id="zend.gdata.youtube.videos.standard.example-3">
-                <title>Retrieving a video feed by URL</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$url = 'http://gdata.youtube.com/feeds/standardfeeds/top_rated?time=today'
-$videoFeed = $yt->getVideoFeed($url);
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.user">
-            <title>Retrieving videos uploaded by a user</title>
-
-            <para>
-                You can retrieve a list of videos uploaded by a particular user
-                using a simple helper method. This example retrieves videos
-                uploaded by the user 'liz'.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.user.example">
-                <title>Retrieving videos uploaded by a specific user</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getUserUploads('liz');
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.favorites">
-            <title>Retrieving videos favorited by a user</title>
-
-            <para>
-                You can retrieve a list of a user's favorite videos
-                using a simple helper method. This example retrieves videos
-                favorited by the user 'liz'.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.favorites.example">
-                <title>Retrieving a user's favorite videos</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getUserFavorites('liz');
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.responses">
-            <title>Retrieving video responses for a video</title>
-
-            <para>
-                You can retrieve a list of a video's video responses
-                using a simple helper method. This example retrieves video
-                response for a video with the ID 'abc123813abc'.
-            </para>
-
-            <example id="zend.gdata.youtube.videos.responses.example">
-                <title>Retrieving a feed of video responses</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getVideoResponseFeed('abc123813abc');
-]]></programlisting>
-            </example>
-        </sect3>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.comments">
-        <title>Retrieving video comments</title>
-
-        <para>
-            The comments for each YouTube video can be retrieved in
-            several ways. To retrieve the comments for the video with
-            the ID 'abc123813abc', use the following code:
-        </para>
-
-        <example id="zend.gdata.youtube.videos.comments.example-1">
-            <title>Retrieving a feed of video comments from a video ID</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$commentFeed = $yt->getVideoCommentFeed('abc123813abc');
-
-foreach ($commentFeed as $commentEntry) {
-    echo $commentEntry->title->text . "\n";
-    echo $commentEntry->content->text . "\n\n\n";
-}
-]]></programlisting>
-        </example>
-
-        <para>
-            Comments can also be retrieved for a video if you have a copy of the <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            object:
-        </para>
-
-        <example id="zend.gdata.youtube.videos.comments.example-2">
-            <title>Retrieving a Feed of Video Comments from a Zend_Gdata_YouTube_VideoEntry</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoEntry = $yt->getVideoEntry('abc123813abc');
-// we don't know the video ID in this example, but we do have the URL
-$commentFeed = $yt->getVideoCommentFeed(null,
-                                        $videoEntry->comments->href);
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.playlists">
-        <title>Retrieving playlist feeds</title>
-
-        <para>
-          The YouTube Data <acronym>API</acronym> provides information about users, including
-            profiles, playlists, subscriptions, and more.
-        </para>
-
-        <sect3 id="zend.gdata.youtube.playlists.user">
-            <title>Retrieving the playlists of a user</title>
-
-            <para>
-                The library provides a helper method to retrieve
-                the playlists associated with a given user. To retrieve the
-                playlists for the user 'liz':
-            </para>
-
-            <example id="zend.gdata.youtube.playlists.user.example">
-                <title>Retrieving the playlists of a user</title>
-
-                <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$playlistListFeed = $yt->getPlaylistListFeed('liz');
-
-foreach ($playlistListFeed as $playlistEntry) {
-    echo $playlistEntry->title->text . "\n";
-    echo $playlistEntry->description->text . "\n";
-    echo $playlistEntry->getPlaylistVideoFeedUrl() . "\n\n\n";
-}
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.playlists.special">
-            <title>Retrieving a specific playlist</title>
-
-            <para>
-                The library provides a helper method to retrieve
-                the videos associated with a given playlist. To retrieve the
-                playlists for a specific playlist entry:
-            </para>
-
-            <example id="zend.gdata.youtube.playlists.special.example">
-                <title>Retrieving a specific playlist</title>
-
-                <programlisting language="php"><![CDATA[
-$feedUrl = $playlistEntry->getPlaylistVideoFeedUrl();
-$playlistVideoFeed = $yt->getPlaylistVideoFeed($feedUrl);
-]]></programlisting>
-            </example>
-        </sect3>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.subscriptions">
-        <title>Retrieving a list of a user's subscriptions</title>
-
-        <para>
-            A user can have several types of subscriptions: channel
-            subscription, tag subscription, or favorites subscription. A <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_SubscriptionEntry.html">Zend_Gdata_YouTube_SubscriptionEntry</ulink>
-            is used to represent individual subscriptions.
-        </para>
-
-        <para>
-            To retrieve all subscriptions for the user 'liz':
-        </para>
-
-        <example id="zend.gdata.youtube.subscriptions.example">
-            <title>Retrieving all subscriptions for a user</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$subscriptionFeed = $yt->getSubscriptionFeed('liz');
-
-foreach ($subscriptionFeed as $subscriptionEntry) {
-    echo $subscriptionEntry->title->text . "\n";
-}
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.profile">
-        <title>Retrieving a user's profile</title>
-
-        <para>
-            You can retrieve the public profile information
-            for any YouTube user. To retrieve the profile
-            for the user 'liz':
-        </para>
-
-        <example id="zend.gdata.youtube.profile.example">
-            <title>Retrieving a user's profile</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$userProfile = $yt->getUserProfile('liz');
-echo "username: " . $userProfile->username->text . "\n";
-echo "age: " . $userProfile->age->text . "\n";
-echo "hometown: " . $userProfile->hometown->text . "\n";
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads">
-        <title>Uploading Videos to YouTube</title>
-
-        <para>
-            Please make sure to review the diagrams in the <ulink
-                url="http://code.google.com/apis/youtube/developers_guide_protocol.html#Process_Flows_for_Uploading_Videos">protocol
-                guide</ulink> on code.google.com for a high-level
-            overview of the upload process. Uploading videos can be done in one of
-            two ways: either by uploading the video directly or by sending just the video
-            meta-data and having a user upload the video through an <acronym>HTML</acronym> form.
-        </para>
-
-        <para>
-            In order to upload a video directly, you must first construct a new <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            object and specify some required meta-data. The following example shows uploading the
-            Quicktime video "mytestmovie.mov" to YouTube with the following properties:
-        </para>
-
-        <table id="zend.gdata.youtube.uploads.metadata">
-            <title>Metadata used in the code-sample below</title>
-
-            <tgroup cols="2" align="left" colsep="1" rowsep="1">
-                <thead>
-                    <row>
-                        <entry>Property</entry>
-                        <entry>Value</entry>
-                    </row>
-                </thead>
-
-                <tbody>
-                    <row>
-                        <entry>Title</entry>
-                        <entry>My Test Movie</entry>
-                    </row>
-
-                    <row>
-                        <entry>Category</entry>
-                        <entry>Autos</entry>
-                    </row>
-
-                    <row>
-                        <entry>Keywords</entry>
-                        <entry>cars, funny</entry>
-                    </row>
-
-                    <row>
-                        <entry>Description</entry>
-                        <entry>My description</entry>
-                    </row>
-
-                    <row>
-                        <entry>Filename</entry>
-                        <entry>mytestmovie.mov</entry>
-                    </row>
-
-                    <row>
-                        <entry>File <acronym>MIME</acronym> type</entry>
-                        <entry>video/quicktime</entry>
-                    </row>
-
-                    <row>
-                        <entry>Video private?</entry>
-                        <entry><constant>FALSE</constant></entry>
-                    </row>
-
-                    <row>
-                        <entry>Video location</entry>
-                        <entry>37, -122 (lat, long)</entry>
-                    </row>
-
-                    <row>
-                        <entry>Developer Tags</entry>
-                        <entry>mydevelopertag, anotherdevelopertag</entry>
-                    </row>
-                </tbody>
-            </tgroup>
-        </table>
-
-        <para>
-            The code below creates a blank <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            to be uploaded. A <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_App_MediaFileSource.html">Zend_Gdata_App_MediaFileSource</ulink>
-            object is then used to hold the actual video file. Under the hood, the <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_Extension_MediaGroup.html">Zend_Gdata_YouTube_Extension_MediaGroup</ulink>
-            object is used to hold all of the video's meta-data. Our helper methods detailed below
-            allow you to just set the video meta-data without having to worry about the media group
-            object. The $uploadUrl is the location where the new entry gets posted to.
-            This can be specified either with the $userName of the
-            currently authenticated user, or, alternatively, you can simply use the
-            string 'default' to refer to the currently authenticated user.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.example">
-            <title>Uploading a video</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient);
-$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
-
-$filesource = $yt->newMediaFileSource('mytestmovie.mov');
-$filesource->setContentType('video/quicktime');
-$filesource->setSlug('mytestmovie.mov');
-
-$myVideoEntry->setMediaSource($filesource);
-
-$myVideoEntry->setVideoTitle('My Test Movie');
-$myVideoEntry->setVideoDescription('My Test Movie');
-// Note that category must be a valid YouTube category !
-$myVideoEntry->setVideoCategory('Comedy');
-
-// Set keywords, note that this must be a comma separated string
-// and that each keyword cannot contain whitespace
-$myVideoEntry->SetVideoTags('cars, funny');
-
-// Optionally set some developer tags
-$myVideoEntry->setVideoDeveloperTags(array('mydevelopertag',
-                                           'anotherdevelopertag'));
-
-// Optionally set the video's location
-$yt->registerPackage('Zend_Gdata_Geo');
-$yt->registerPackage('Zend_Gdata_Geo_Extension');
-$where = $yt->newGeoRssWhere();
-$position = $yt->newGmlPos('37.0 -122.0');
-$where->point = $yt->newGmlPoint($position);
-$myVideoEntry->setWhere($where);
-
-// Upload URI for the currently authenticated user
-$uploadUrl =
-    'http://uploads.gdata.youtube.com/feeds/users/default/uploads';
-
-// Try to upload the video, catching a Zend_Gdata_App_HttpException
-// if availableor just a regular Zend_Gdata_App_Exception
-
-try {
-    $newEntry = $yt->insertEntry($myVideoEntry,
-                                 $uploadUrl,
-                                 'Zend_Gdata_YouTube_VideoEntry');
-} catch (Zend_Gdata_App_HttpException $httpException) {
-    echo $httpException->getRawResponseBody();
-} catch (Zend_Gdata_App_Exception $e) {
-    echo $e->getMessage();
-}
-]]></programlisting>
-        </example>
-
-        <para>
-            To upload a video as private, simply use: $myVideoEntry->setVideoPrivate(); prior to
-            performing the upload. $videoEntry->isVideoPrivate() can be used to check whether a
-            video entry is private or not.
-        </para>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads.browser">
-        <title>Browser-based upload</title>
-
-        <para>
-            Browser-based uploading is performed almost identically to direct uploading,
-            except that you do not attach a <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_App_MediaFileSource.html">Zend_Gdata_App_MediaFileSource</ulink>
-            object to the <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            you are constructing. Instead you simply submit all of your video's meta-data to receive
-            back a token element which can be used to construct an <acronym>HTML</acronym> upload
-            form.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.browser.example-1">
-            <title>Browser-based upload</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient);
-
-$myVideoEntry= new Zend_Gdata_YouTube_VideoEntry();
-$myVideoEntry->setVideoTitle('My Test Movie');
-$myVideoEntry->setVideoDescription('My Test Movie');
-
-// Note that category must be a valid YouTube category
-$myVideoEntry->setVideoCategory('Comedy');
-$myVideoEntry->SetVideoTags('cars, funny');
-
-$tokenHandlerUrl = 'http://gdata.youtube.com/action/GetUploadToken';
-$tokenArray = $yt->getFormUploadToken($myVideoEntry, $tokenHandlerUrl);
-$tokenValue = $tokenArray['token'];
-$postUrl = $tokenArray['url'];
-]]></programlisting>
-        </example>
-
-        <para>
-            The above code prints out a link and a token that is used to construct an
-            <acronym>HTML</acronym> form to display in the user's browser. A simple example form is
-            shown below with $tokenValue representing the content of the returned token element,
-            as shown being retrieved from $myVideoEntry above. In order for the user
-            to be redirected to your website after submitting the form, make sure to
-            append a $nextUrl parameter to the $postUrl above, which functions in the
-            same way as the $next parameter of an AuthSub link. The only difference is
-            that here, instead of a single-use token, a status and an id variable are
-            returned in the <acronym>URL</acronym>.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.browser.example-2">
-            <title>Browser-based upload: Creating the HTML form</title>
-
-            <programlisting language="php"><![CDATA[
-// place to redirect user after upload
-$nextUrl = 'http://mysite.com/youtube_uploads';
-
-$form = '<form action="'. $postUrl .'?nexturl='. $nextUrl .
-        '" method="post" enctype="multipart/form-data">'.
-        '<input name="file" type="file"/>'.
-        '<input name="token" type="hidden" value="'. $tokenValue .'"/>'.
-        '<input value="Upload Video File" type="submit" />'.
-        '</form>';
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads.status">
-        <title>Checking upload status</title>
-
-        <para>
-            After uploading a video, it will immediately be visible in an
-            authenticated user's uploads feed. However, it will not be public on
-            the site until it has been processed. Videos that have been rejected or
-            failed to upload successfully will also only be in the authenticated
-            user's uploads feed. The following code checks the status of a <ulink
-                url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            to see if it is not live yet or if it has been rejected.
-        </para>
-
-        <example id="zend.gdata.youtube.uploads.status.example">
-            <title>Checking video upload status</title>
-
-            <programlisting language="php"><![CDATA[
-try {
-    $control = $videoEntry->getControl();
-} catch (Zend_Gdata_App_Exception $e) {
-    echo $e->getMessage();
-}
-
-if ($control instanceof Zend_Gdata_App_Extension_Control) {
-    if ($control->getDraft() != null &&
-        $control->getDraft()->getText() == 'yes') {
-        $state = $videoEntry->getVideoState();
-
-        if ($state instanceof Zend_Gdata_YouTube_Extension_State) {
-            print 'Upload status: '
-                  . $state->getName()
-                  .' '. $state->getText();
-        } else {
-            print 'Not able to retrieve the video status information'
-                  .' yet. ' . "Please try again shortly.\n";
-        }
-    }
-}
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.other">
-        <title>Other Functions</title>
-
-        <para>
-            In addition to the functionality described above, the YouTube <acronym>API</acronym>
-            contains many other functions that allow you to modify video meta-data,
-            delete video entries and use the full range of community features on the site. Some of
-            the community features that can be modified through the <acronym>API</acronym> include:
-            ratings, comments, playlists, subscriptions, user profiles, contacts and messages.
-        </para>
-        <para>
-            Please refer to the full documentation available in the <ulink
-                url="http://code.google.com/apis/youtube/developers_guide_php.html">PHP Developer's
-                Guide</ulink> on code.google.com.
-        </para>
-    </sect2>
-</sect1>

+ 0 - 7
documentation/manual/ja/module_specs/Zend_Gdata-Introduction.xml

@@ -59,13 +59,6 @@
             </listitem>
             <listitem>
                 <para>
-                    <link linkend="zend.gdata.youtube">YouTube</link>
-                    は、動画やコメント、お気に入り、登録チャンネル、
-                    ユーザのプロファイルといった情報を検索して取得できます。
-                </para>
-            </listitem>
-            <listitem>
-                <para>
                     <link linkend="zend.gdata.photos">Picasa Web Albums</link>
                     は、オンラインの写真共有アプリケーションです。
                 </para>

+ 0 - 638
documentation/manual/ja/module_specs/Zend_Gdata_YouTube.xml

@@ -1,638 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Reviewed: no -->
-<!-- EN-Revision: 24249 -->
-<sect1 id="zend.gdata.youtube">
-    <title>YouTube Data API の使用法</title>
-
-    <para>
-        YouTube data <acronym>API</acronym> は、YouTube のコンテンツを読み書きする機能を提供します。
-        認証済みでないリクエストを Google Data フィードに実行し、
-        人気のある動画やコメント、YouTube 登録ユーザの公開情報
-        (たとえばプレイリストや購読内容、コンタクトなど)
-        を取得できます。
-    </para>
-
-    <para>
-        YouTube Data <acronym>API</acronym> についての詳細は、code.google.com の
-        <ulink url="http://code.google.com/apis/youtube/developers_guide_php.html">
-        <acronym>PHP</acronym> Developer's Guide</ulink> を参照ください。
-    </para>
-
-    <sect2 id="zend.gdata.youtube.authentication">
-        <title>認証</title>
-        <para>
-          YouTube Data <acronym>API</acronym> は、公開データへの読み取り専用アクセス機能を提供しており、
-          認証は不要です。書き込みリクエストを行う場合は、ClientLogin
-          あるいは AuthSub でのユーザ認証が必要となります。詳細は
-          <ulink url="http://code.google.com/apis/youtube/developers_guide_php.html#Authentication">
-          <acronym>PHP</acronym> Developer's Guide の認証のセクション</ulink>
-          を参照ください。
-        </para>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.developer_key">
-        <title>Developer Keys および Client ID</title>
-        <para>
-            デベロッパーキーは、<acronym>API</acronym> リクエストを行う YouTube
-            開発者を識別するためのものです。クライアント ID
-            は、ログの記録やデバッグなどの際にアプリケーションを識別するものです。
-            <ulink url="http://code.google.com/apis/youtube/dashboard/">http://code.google.com/apis/youtube/dashboard/</ulink>
-            でデベロッパーキーとクライアント ID を取得できます。
-            下の例は、デベロッパーキーとクライアント ID を
-            <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube.html">Zend_Gdata_YouTube</ulink>
-            サービスオブジェクトに渡すものです。
-        </para>
-        <example id="zend.gdata.youtube.developer_key.example">
-          <title>Developer Key と ClientID を Zend_Gdata_YouTube に渡す</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient,
-                             $applicationId,
-                             $clientId,
-                             $developerKey);
-]]></programlisting>
-            </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.videos">
-        <title>公開動画フィードの取得</title>
-
-        <para>
-            YouTube data <acronym>API</acronym> はさまざまなフィードを提供しており、
-            たとえば標準の動画一覧や関連する動画一覧、動画への返信一覧、
-            アップロードした動画の一覧、お気に入りの動画一覧などを取得できます。
-            たとえばアップロードした動画一覧のフィードは、
-            指定したユーザがアップロードしたすべての動画を返します。
-            どのようなフィードが取得できるのかについては
-            <ulink url="http://code.google.com/apis/youtube/reference.html#Video_Feeds">
-            YouTube <acronym>API</acronym> リファレンスガイド</ulink> を参照ください。
-        </para>
-
-        <sect3 id="zend.gdata.youtube.videos.searching">
-            <title>メタデータによる動画の検索</title>
-
-            <para>
-                指定した条件にマッチする動画の一覧を、YouTubeQuery
-                クラスを用いて取得できます。
-                たとえば次のクエリは、メタデータに "cat" という単語を含む動画を探し、
-                その結果の 10 番目から 1 ページあたり 20 件ずつ表示します。
-                また、閲覧回数順に表示します。
-            </para>
-        <example id="zend.gdata.youtube.videos.searching.example">
-          <title>動画の検索</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->videoQuery = 'cat';
-$query->startIndex = 10;
-$query->maxResults = 20;
-$query->orderBy = 'viewCount';
-
-echo $query->queryUrl . "\n";
-$videoFeed = $yt->getVideoFeed($query);
-
-foreach ($videoFeed as $videoEntry) {
-    echo "---------動画----------\n";
-    echo "タイトル: " . $videoEntry->getVideoTitle() . "\n";
-    echo "\n説明:\n";
-    echo $videoEntry->getVideoDescription();
-    echo "\n\n\n";
-}
-]]></programlisting>
-            </example>
-
-            <para>
-                その他のクエリパラメータの詳細は
-                <ulink url="http://code.google.com/apis/youtube/reference.html#Searching_for_videos">
-                リファレンスガイド</ulink>を参照ください。
-                <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoQuery.html">
-                <classname>Zend_Gdata_YouTube_VideoQuery</classname></ulink>
-                には、これらのパラメータ用のヘルパー関数もあります。詳細は
-                <ulink url="http://code.google.com/apis/youtube/developers_guide_php.html#SearchingVideos"><acronym>PHP</acronym> Developer's Guide</ulink>
-                を参照ください。
-            </para>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.searchingcategories">
-            <title>カテゴリやタグ/キーワードによる動画の検索</title>
-
-            <para>
-                カテゴリを指定して動画を検索するには、
-                <ulink url="http://code.google.com/apis/youtube/reference.html#Category_search">
-                専用の <acronym>URL</acronym> を作成します</ulink>。たとえば、dog
-                というキーワードを含むコメディーの動画を検索するには次のようにします。
-            </para>
-             <example id="zend.gdata.youtube.videos.searchingcategories.example">
-          <title>指定したカテゴリの動画の検索</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->category = 'Comedy/dog';
-
-echo $query->queryUrl . "\n";
-$videoFeed = $yt->getVideoFeed($query);
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.standard">
-            <title>標準のフィード</title>
-
-            <para>
-                YouTube Data <acronym>API</acronym> が提供する
-                <ulink url="http://code.google.com/apis/youtube/reference.html#Standard_feeds">
-                標準フィード</ulink> にはさまざまなものがあります。
-                これらの標準フィードは、<acronym>URL</acronym> を指定することで
-                <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoFeed.html">Zend_Gdata_YouTube_VideoFeed</ulink>
-                オブジェクトとして取得できます。<acronym>URL</acronym> の指定には
-                <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube.html">Zend_Gdata_YouTube</ulink>
-                クラスの定義済み定数
-                (たとえば Zend_Gdata_YouTube::STANDARD_TOP_RATED_URI)
-                を使用するか、あるいは定義済みヘルパーメソッド
-                (下のコードを参照ください) を使用します。
-            </para>
-
-            <para>
-                評価の高い動画を取得するヘルパーメソッドは次のようになります。
-            </para>
-            <example id="zend.gdata.youtube.videos.standard.example-1">
-          <title>標準の動画フィードの取得</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getTopRatedVideoFeed();
-]]></programlisting>
-            </example>
-            <para>
-                取得する標準フィードの期間を指定するクエリパラメータもあります。
-            </para>
-
-            <para>
-              たとえば、今日いちばん評価の高い動画を取得するには次のようにします。
-            </para>
-<example id="zend.gdata.youtube.videos.standard.example-2">
-          <title>Zend_Gdata_YouTube_VideoQuery を使用した動画の取得</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$query = $yt->newVideoQuery();
-$query->setTime('today');
-$videoFeed = $yt->getTopRatedVideoFeed($query);
-]]></programlisting>
-            </example>
-            <para>
-                あるいは、次のように <acronym>URL</acronym> を使用してフィードを取得することもできます。
-            </para>
-
-<example id="zend.gdata.youtube.videos.standard.example-3">
-          <title>URL からの動画フィードの取得</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$url = 'http://gdata.youtube.com/feeds/standardfeeds/top_rated?time=today'
-$videoFeed = $yt->getVideoFeed($url);
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.user">
-            <title>指定したユーザがアップロードした動画の取得</title>
-
-            <para>
-                指定したユーザがアップロードした動画の一覧を取得するヘルパーメソッドもあります。
-                次の例は、ユーザ 'liz' がアップロードした動画の一覧を取得します。
-            </para>
-            <example id="zend.gdata.youtube.videos.user.example">
-          <title>指定したユーザがアップロードした動画の取得</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getUserUploads('liz');
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.favorites">
-            <title>指定したユーザのお気に入り動画の取得</title>
-
-            <para>
-                指定したユーザのお気に入り動画の一覧を取得するヘルパーメソッドもあります。
-                次の例は、ユーザ 'liz' のお気に入り動画の一覧を取得します。
-            </para>
-            <example id="zend.gdata.youtube.videos.favorites.example">
-          <title>指定したユーザのお気に入り動画の取得</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getUserFavorites('liz');
-]]></programlisting>
-            </example>
-
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.videos.responses">
-            <title>動画に対する返信動画の取得</title>
-
-            <para>
-                指定した動画に対する動画の返信の一覧を取得するヘルパーメソッドもあります。
-                次の例は、ID 'abc123813abc' の動画に対する返信動画を取得します。
-            </para>
-            <example id="zend.gdata.youtube.videos.responses.example">
-          <title>動画への返信のフィードの取得</title>
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoFeed = $yt->getVideoResponseFeed('abc123813abc');
-]]></programlisting>
-            </example>
-        </sect3>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.comments">
-        <title>動画のコメントの取得</title>
-
-        <para>
-            YouTube の動画に対するコメントを取得するにはいくつかの方法があります。
-            ID 'abc123813abc' の動画に対するコメントを取得するコードは、次のようになります。
-        </para>
-            <example id="zend.gdata.youtube.videos.comments.example-1">
-          <title>動画 ID からの動画へのコメントのフィードの取得</title>
-
-        <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$commentFeed = $yt->getVideoCommentFeed('abc123813abc');
-
-foreach ($commentFeed as $commentEntry) {
-    echo $commentEntry->title->text . "\n";
-    echo $commentEntry->content->text . "\n\n\n";
-}
-]]></programlisting>
-        </example>
-
-        <para>
-            もし既にその動画を表す
-            <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-            オブジェクトがあるのなら、それを用いてその動画のコメントを取得することもできます。
-        </para>
-           <example id="zend.gdata.youtube.videos.comments.example-2">
-          <title>Zend_Gdata_YouTube_VideoEntry からの動画へのコメントのフィードの取得</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$videoEntry = $yt->getVideoEntry('abc123813abc');
-// 動画の ID がわからなくても、このようにして URL を取得できます
-$commentFeed = $yt->getVideoCommentFeed(null,
-                                        $videoEntry->comments->href);
-]]></programlisting>
-            </example>
-
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.playlists">
-        <title>プレイリストフィードの取得</title>
-
-        <para>
-            YouTube data <acronym>API</acronym> を使用すると、
-            プロファイルやプレイリスト、購読内容といったユーザ情報を取得できます。
-        </para>
-
-        <sect3 id="zend.gdata.youtube.playlists.user">
-            <title>指定したユーザのプレイリストの取得</title>
-
-            <para>
-                このライブラリには、指定したユーザのプレイリストを取得するためのヘルパーメソッドがあります。
-                ユーザ 'liz' のプレイリストを取得するには、次のようにします。
-            </para>
-                       <example id="zend.gdata.youtube.playlists.user.example">
-          <title>指定したユーザのプレイリストの取得</title>
-
-            <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$playlistListFeed = $yt->getPlaylistListFeed('liz');
-
-foreach ($playlistListFeed as $playlistEntry) {
-    echo $playlistEntry->title->text . "\n";
-    echo $playlistEntry->description->text . "\n";
-    echo $playlistEntry->getPlaylistVideoFeedUrl() . "\n\n\n";
-}
-]]></programlisting>
-            </example>
-        </sect3>
-
-        <sect3 id="zend.gdata.youtube.playlists.special">
-            <title>指定したプレイリストの取得</title>
-
-            <para>
-                このライブラリには、
-                指定したプレイリストの動画一覧を取得するヘルパーメソッドがあります。
-                指定したプレイリストエントリの動画一覧を取得するには、次のようにします。
-            </para>
-          <example id="zend.gdata.youtube.playlists.special.example">
-          <title>指定したプレイリストの取得</title>
-            <programlisting language="php"><![CDATA[
-$feedUrl = $playlistEntry->getPlaylistVideoFeedUrl();
-$playlistVideoFeed = $yt->getPlaylistVideoFeed($feedUrl);
-]]></programlisting>
-            </example>
-        </sect3>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.subscriptions">
-        <title>指定したユーザの購読内容の一覧の取得</title>
-
-        <para>
-            ユーザは、チャンネルやタグ、お気に入りなどの内容を購読できます。
-            <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_SubscriptionEntry.html">Zend_Gdata_YouTube_SubscriptionEntry</ulink>
-            を使用して、それらの購読内容を表します。
-        </para>
-
-        <para>
-            ユーザ 'liz' のすべての購読内容を取得するには、次のようにします。
-        </para>
-        <example id="zend.gdata.youtube.subscriptions.example">
-          <title>指定したユーザのすべての購読の取得</title>
-
-        <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$subscriptionFeed = $yt->getSubscriptionFeed('liz');
-
-foreach ($subscriptionFeed as $subscriptionEntry) {
-    echo $subscriptionEntry->title->text . "\n";
-}
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.profile">
-        <title>ユーザのプロファイルの取得</title>
-
-        <para>
-            任意の YouTube ユーザの公開プロファイル情報を取得できます。
-            ユーザ 'liz' のプロファイルを取得するには、次のようにします。
-        </para>
-                  <example id="zend.gdata.youtube.profile.example">
-          <title>ユーザのプロファイルの取得</title>
-
-        <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube();
-$userProfile = $yt->getUserProfile('liz');
-echo "ユーザ名: " . $userProfile->username->text . "\n";
-echo "年齢: " . $userProfile->age->text . "\n";
-echo "出身地: " . $userProfile->hometown->text . "\n";
-]]></programlisting>
-        </example>
-    </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads">
-      <title>YouTube への動画のアップロード</title>
-
-      <para>
-        アップロードのおおまかな手順については、code.google.com の
-        <ulink url="http://code.google.com/apis/youtube/developers_guide_protocol.html#Process_Flows_for_Uploading_Videos">
-        プロトコルガイド</ulink>の図を参照ください。
-        動画のアップロードには 2 通りの方法があります。
-        動画を直接送信するか、単に動画のメタデータだけを送信して動画は
-        <acronym>HTML</acronym> フォームでアップロードさせるかです。
-      </para>
-
-      <para>
-        動画を直接アップロードするには、まず新しい
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-        オブジェクトを作成して必須メタデータを指定しなければなりません。
-        次の例は、Quicktime 動画 "mytestmovie.mov" を以下のプロパティで
-        YouTube にアップロードするものです。
-      </para>
-        <table id="zend.gdata.youtube.uploads.metadata">
-          <title>以下のサンプルで使用するメタデータ</title>
-          <tgroup cols="2" align="left" colsep="1" rowsep="1">
-            <thead>
-              <row>
-                <entry>プロパティ</entry>
-                <entry>値</entry>
-              </row>
-            </thead>
-            <tbody>
-              <row>
-                <entry>Title</entry>
-                <entry>My Test Movie</entry>
-              </row>
-              <row>
-                <entry>Category</entry>
-                <entry>Autos</entry>
-              </row>
-              <row>
-                <entry>Keywords</entry>
-                <entry>cars, funny</entry>
-              </row>
-              <row>
-                <entry>Description</entry>
-                <entry>My description</entry>
-              </row>
-              <row>
-                <entry>Filename</entry>
-                <entry>mytestmovie.mov</entry>
-              </row>
-              <row>
-                <entry>File <acronym>MIME</acronym> type</entry>
-                <entry>video/quicktime</entry>
-              </row>
-              <row>
-                <entry>Video private?</entry>
-                <entry><constant>FALSE</constant></entry>
-              </row>
-              <row>
-                <entry>Video location</entry>
-                <entry>37, -122 (lat, long)</entry>
-              </row>
-              <row>
-                <entry>Developer Tags</entry>
-                <entry>mydevelopertag, anotherdevelopertag</entry>
-              </row>
-            </tbody>
-            </tgroup>
-      </table>
-      <para>
-        下のコードは、アップロード用に空の
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-        を作成します。次に
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_App_MediaFileSource.html">Zend_Gdata_App_MediaFileSource</ulink>
-        オブジェクトを使用して実際の動画ファイルを保持させます。水面下では、
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_Extension_MediaGroup.html">Zend_Gdata_YouTube_Extension_MediaGroup</ulink>
-        オブジェクトを使用して動画のすべてのメタデータを保持します。
-        以下で説明するヘルパーメソッドを使用すると、
-        メディアグループオブジェクトのことを気にせず動画のメタデータを設定できます。
-        $uploadUrl は、新しいエントリを投稿する場所です。
-        これは、認証済みユーザの名前 $userName で指定することもできますし、
-        シンプルに 'default' と指定して現在の認証済みユーザを自動的に利用することもできます。
-      </para>
-          <example id="zend.gdata.youtube.uploads.example">
-          <title>動画のアップロード</title>
-
-    <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient);
-$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry();
-
-$filesource = $yt->newMediaFileSource('mytestmovie.mov');
-$filesource->setContentType('video/quicktime');
-$filesource->setSlug('mytestmovie.mov');
-
-$myVideoEntry->setMediaSource($filesource);
-
-$myVideoEntry->setVideoTitle('My Test Movie');
-$myVideoEntry->setVideoDescription('My Test Movie');
-// カテゴリは YouTube のカテゴリとして妥当な形式でなければならないことに注意 !
-$myVideoEntry->setVideoCategory('Comedy');
-
-// キーワードを設定します。カンマ区切りの文字列であり、
-// 各キーワードには空白文字を含めてはいけないことに注意しましょう
-$myVideoEntry->SetVideoTags('cars, funny');
-
-// オプションで、デベロッパタグを指定します
-$myVideoEntry->setVideoDeveloperTags(array('mydevelopertag',
-                                           'anotherdevelopertag'));
-
-// オプションで、動画の撮影場所を指定します
-$yt->registerPackage('Zend_Gdata_Geo');
-$yt->registerPackage('Zend_Gdata_Geo_Extension');
-$where = $yt->newGeoRssWhere();
-$position = $yt->newGmlPos('37.0 -122.0');
-$where->point = $yt->newGmlPoint($position);
-$myVideoEntry->setWhere($where);
-
-// 現在の認証済みユーザ用のアップロード URI
-$uploadUrl =
-    'http://uploads.gdata.youtube.com/feeds/users/default/uploads';
-
-// 動画をアップロードし、Zend_Gdata_App_HttpException あるいは通常の
-// Zend_Gdata_App_Exception を捕捉します
-
-try {
-    $newEntry = $yt->insertEntry($myVideoEntry,
-                                 $uploadUrl,
-                                 'Zend_Gdata_YouTube_VideoEntry');
-} catch (Zend_Gdata_App_HttpException $httpException) {
-    echo $httpException->getRawResponseBody();
-} catch (Zend_Gdata_App_Exception $e) {
-    echo $e->getMessage();
-}
-]]></programlisting>
-</example>
-    <para>
-      非公開で動画をアップロードするには、アップロードの前に
-      $myVideoEntry->setVideoPrivate(); を実行します。
-      $videoEntry->isVideoPrivate() を使用すると、
-      その動画エントリが非公開かどうかを調べることができます。
-    </para>
-  </sect2>
-
-    <sect2 id="zend.gdata.youtube.uploads.browser">
-      <title>ブラウザベースのアップロード</title>
-
-      <para>
-        ブラウザベースのアップロードも直接のアップロードとほとんど同じ処理ですが、
-        作成した
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-        に
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_App_MediaFileSource.html">Zend_Gdata_App_MediaFileSource</ulink>
-        オブジェクトをアタッチしないという点が異なります。
-        そのかわりに、動画のすべてのメタデータを送信してトークン要素を受け取り、
-        それを用いて <acronym>HTML</acronym> アップロードフォームを作成します。
-      </para>
-          <example id="zend.gdata.youtube.uploads.browser.example-1">
-          <title>ブラウザベースのアップロード</title>
-
-      <programlisting language="php"><![CDATA[
-$yt = new Zend_Gdata_YouTube($httpClient);
-
-$myVideoEntry= new Zend_Gdata_YouTube_VideoEntry();
-$myVideoEntry->setVideoTitle('My Test Movie');
-$myVideoEntry->setVideoDescription('My Test Movie');
-
-// YouTube のカテゴリとして妥当な形式でなければならないことに注意
-$myVideoEntry->setVideoCategory('Comedy');
-$myVideoEntry->SetVideoTags('cars, funny');
-
-$tokenHandlerUrl = 'http://gdata.youtube.com/action/GetUploadToken';
-$tokenArray = $yt->getFormUploadToken($myVideoEntry, $tokenHandlerUrl);
-$tokenValue = $tokenArray['token'];
-$postUrl = $tokenArray['url'];
-]]></programlisting>
-      </example>
-    <para>
-      上のコードは、リンクとトークンを表示します。
-      これらを元に、ユーザのブラウザに表示させる <acronym>HTML</acronym> フォームを構築します。
-      シンプルなフォームの例を以下に示します。
-      $tokenValue が返されたトークン要素の中身をあらわしており、
-      これは上の $myVideoEntry から取得したものです。
-      フォームを送信したあとであなたのサイトにリダイレクトさせるには、
-      パラメータ $nextUrl を上の $postUrl に追加します。
-      これは、AuthSub リンクにおけるパラメータ $next と同じように機能します。
-      唯一の違いは、一度きりのトークンではなく
-      status と id を <acronym>URL</acronym> の中に含めて返すということです。
-    </para>
-          <example id="zend.gdata.youtube.uploads.browser.example-2">
-          <title>ブラウザベースのアップロード: HTML フォームの作成</title>
-
-      <programlisting language="php"><![CDATA[
-// アップロード後のリダイレクト先
-$nextUrl = 'http://mysite.com/youtube_uploads';
-
-$form = '<form action="'. $postUrl .'?nexturl='. $nextUrl .
-        '" method="post" enctype="multipart/form-data">'.
-        '<input name="file" type="file"/>'.
-        '<input name="token" type="hidden" value="'. $tokenValue .'"/>'.
-        '<input value="動画のアップロード" type="submit" />'.
-        '</form>';
-]]></programlisting>
-      </example>
-  </sect2>
-    <sect2 id="zend.gdata.youtube.uploads.status">
-      <title>アップロード状況のチェック</title>
-
-      <para>
-        動画をアップロードしたら、認証済みユーザのアップロードフィードにすぐに反映されます。
-        しかし、公開手続きがすむまではサイト上では公開されません。
-        却下された動画やアップロードが正常終了しなかった動画についても、
-        認証ユーザのアップロードフィードのみに現れるようになります。
-        次のコードは、
-        <ulink url="http://framework.zend.com/apidoc/core/Zend_Gdata/Zend_Gdata_YouTube_VideoEntry.html">Zend_Gdata_YouTube_VideoEntry</ulink>
-        の状態をチェックして、公開されているかいないか、また却下されたのかどうかを調べます。
-      </para>
-      <example id="zend.gdata.youtube.uploads.status.example">
-          <title>動画のアップロード状況のチェック</title>
-
-      <programlisting language="php"><![CDATA[
-try {
-    $control = $videoEntry->getControl();
-} catch (Zend_Gdata_App_Exception $e) {
-    echo $e->getMessage();
-}
-
-if ($control instanceof Zend_Gdata_App_Extension_Control) {
-    if ($control->getDraft() != null &&
-        $control->getDraft()->getText() == 'yes') {
-        $state = $videoEntry->getVideoState();
-
-        if ($state instanceof Zend_Gdata_YouTube_Extension_State) {
-            print 'アップロード状況: '
-                  . $state->getName()
-                  .' '. $state->getText();
-        } else {
-            print 'まだ動画の状況についての情報を取得できません。'
-                  . "また後で試してみてください。\n";
-        }
-    }
-}
-]]></programlisting>
-      </example>
-  </sect2>
-    <sect2 id="zend.gdata.youtube.other">
-      <title>その他の関数</title>
-
-      <para>
-        これまで説明してきたもの以外にも YouTube API にはさまざまな機能が存在し、
-        動画のメタデータを編集したり動画エントリを削除したり、
-        サイト上のコミュニティ機能を利用したりといったことが可能です。
-        API で操作できるコミュニティ機能としては、
-        評価やコメント、プレイリスト、購読、ユーザプロファイル、コンタクト、メッセージなどがあります。
-      </para>
-      <para>
-        完全なドキュメントは、code.google.com の
-        <ulink url="http://code.google.com/apis/youtube/developers_guide_php.html"><acronym>PHP</acronym> Developer's Guide</ulink>
-        を参照ください。
-      </para>
-    </sect2>
-</sect1>