Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Service class for interacting with the YouTube Data API.
AUTH_SERVICE_NAME = 'youtube'
Details CLIENTLOGIN_URL = 'https://www.google.com/youtube/accounts/ClientLogin'
Details STANDARD_TOP_RATED_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/top_rated'
Details STANDARD_MOST_VIEWED_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed'
Details STANDARD_RECENTLY_FEATURED_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured'
Details STANDARD_WATCH_ON_MOBILE_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile'
Details STANDARD_TOP_RATED_URI_V2 = 'http://gdata.youtube.com/feeds/api/standardfeeds/top_rated'
Details STANDARD_MOST_VIEWED_URI_V2 = 'http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed'
Details STANDARD_RECENTLY_FEATURED_URI_V2 = 'http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured'
Details STANDARD_WATCH_ON_MOBILE_URI_V2 = 'http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile'
Details USER_URI = 'http://gdata.youtube.com/feeds/api/users'
Details VIDEO_URI = 'http://gdata.youtube.com/feeds/api/videos'
Details PLAYLIST_REL = 'http://gdata.youtube.com/schemas/2007#playlist'
Details USER_UPLOADS_REL = 'http://gdata.youtube.com/schemas/2007#user.uploads'
Details USER_PLAYLISTS_REL = 'http://gdata.youtube.com/schemas/2007#user.playlists'
Details USER_SUBSCRIPTIONS_REL = 'http://gdata.youtube.com/schemas/2007#user.subscriptions'
Details USER_CONTACTS_REL = 'http://gdata.youtube.com/schemas/2007#user.contacts'
Details USER_FAVORITES_REL = 'http://gdata.youtube.com/schemas/2007#user.favorites'
Details VIDEO_RESPONSES_REL = 'http://gdata.youtube.com/schemas/2007#video.responses'
Details VIDEO_RATINGS_REL = 'http://gdata.youtube.com/schemas/2007#video.ratings'
Details VIDEO_COMPLAINTS_REL = 'http://gdata.youtube.com/schemas/2007#video.complaints'
Details ACTIVITY_FEED_URI = 'http://gdata.youtube.com/feeds/api/events'
Details FRIEND_ACTIVITY_FEED_URI = 'http://gdata.youtube.com/feeds/api/users/default/friendsactivity'
Detailsstring IN_REPLY_TO_SCHEME = 'http://gdata.youtube.com/schemas/2007#in-reply-to'
The URI of the in-reply-to schema for comments in reply to other comments.
Detailsstring INBOX_FEED_URI = 'http://gdata.youtube.com/feeds/api/users/default/inbox'
The URI of the inbox feed for the currently authenticated user.
Detailsinteger ACTIVITY_FEED_MAX_USERS = '20'
The maximum number of users for which activity can be requested for, as enforced by the API.
Detailsstring FAVORITES_URI_SUFFIX = 'favorites'
The suffix for a feed of favorites.
Detailsstring UPLOADS_URI_SUFFIX = 'uploads'
The suffix for the user's upload feed.
Detailsstring RESPONSES_URI_SUFFIX = 'responses'
The suffix for a feed of video responses.
Detailsstring RELATED_URI_SUFFIX = 'related'
The suffix for a feed of related videos.
Detailsstring INBOX_URI_SUFFIX = 'inbox'
The suffix for a feed of messages (inbox entries).
Detailsarray $namespaces = 'array'Namespaces used for Zend_Gdata_YouTube
Details__construct(
Zend_Http_Client $client
=
null, string $applicationId
=
MyCompany-MyApp-1.0, string $clientId
=
null, string $developerKey
=
null
)
:
Create Zend_Gdata_YouTube object
DetailsgetActivityForUser(
$username
)
:
Zend_Gdata_YouTube_ActivityFeedRetrieves the activity feed for users
DetailsgetContactFeed(
string $user
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_ContactFeedRetrieves a feed of a user's contacts
DetailsgetFormUploadToken(
Zend_Gdata_YouTube_VideoEntry $videoEntry, string $url
=
http://gdata.youtube.com/action/GetUploadToken
)
:
arrayRetrieves a YouTube token
DetailsgetFriendActivityForCurrentUser(
)
:
Zend_Gdata_YouTube_ActivityFeedRetrieve the activity of the currently authenticated users friend.
DetailsgetFullVideoEntry(
$videoId
)
:
Zend_Gdata_YouTube_VideoEntry|nullRetrieves a video entry from the user's upload feed.
DetailsgetInboxFeedForCurrentUser(
)
:
Zend_Gdata_YouTube_InboxFeed|nullRetrieve a feed of messages in the currently authenticated user's inbox.
DetailsgetMostViewedVideoFeed(
mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a feed of the most viewed videos.
DetailsgetPlaylistListFeed(
string $user
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_PlaylistListFeedRetrieves a feed which lists a user's playlist
DetailsgetPlaylistVideoFeed(
mixed $location
)
:
Zend_Gdata_YouTube_PlaylistVideoFeedRetrieves a feed of videos in a particular playlist
DetailsgetRecentlyFeaturedVideoFeed(
mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a feed of recently featured videos.
DetailsgetRelatedVideoFeed(
string $videoId
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a feed of videos related to the specified video ID.
DetailsgetSubscriptionFeed(
string $user
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_SubscriptionListFeedRetrieves a feed of a user's subscriptions
DetailsgetTopRatedVideoFeed(
mixed $location
=
null
)
:
Zend_Gdata_YouTube_CommentFeedRetrieves a feed of comments related to the specified video ID.
DetailsgetUserFavorites(
string $user
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a user's favorites
DetailsgetUserProfile(
string $user
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_UserProfileEntryRetrieves a user's profile as an entry
DetailsgetUserUploads(
string $user
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a user's uploads
DetailsgetVideoCommentFeed(
string $videoId
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_CommentFeedRetrieves a feed of comments related to the specified video ID.
DetailsgetVideoEntry(
mixed $videoId
=
null, mixed $location
=
null, boolean $fullEntry
=
false
)
:
Zend_Gdata_YouTube_VideoEntryRetrieves a specific video entry.
DetailsgetVideoFeed(
mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a feed of videos.
DetailsgetVideoResponseFeed(
string $videoId
=
null, mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a feed of video responses related to the specified video ID.
DetailsgetWatchOnMobileVideoFeed(
mixed $location
=
null
)
:
Zend_Gdata_YouTube_VideoFeedRetrieves a feed of videos recently featured for mobile devices.
These videos will have RTSP links in the $entry->mediaGroup->content
DetailsparseFormUploadTokenResponse(
string $response
)
:
arrayHelper function for parsing a YouTube token response
DetailsreplyToCommentEntry(
$commentEntry $commentEntry, $commentText $commentText
)
:
APost a comment in reply to an existing comment
DetailssendVideoMessage(
string $body, Zend_Gdata_YouTube_VideoEntry $videoEntry
=
null, string $videoId
=
null, string $recipientUserName
)
:
Zend_Gdata_YouTube_InboxEntry|nullSend a video message.
Note: Either a Zend_Gdata_YouTube_VideoEntry or a valid video ID must be provided.
DetailssetHttpClient(
Zend_Http_Client $client, $applicationId
=
MyCompany-MyApp-1.0, $clientId
=
null, $developerKey
=
null
)
:
Zend_Gdata_AppSet the Zend_Http_Client object used for communication
Details