[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Gdata/ -> YouTube.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 874 lines (32 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Gdata_YouTube:: (26 methods):
  __construct()
  setHttpClient()
  getVideoFeed()
  getVideoEntry()
  getFullVideoEntry()
  getRelatedVideoFeed()
  getVideoResponseFeed()
  getVideoCommentFeed()
  getTopRatedVideoFeed()
  getMostViewedVideoFeed()
  getRecentlyFeaturedVideoFeed()
  getWatchOnMobileVideoFeed()
  getPlaylistListFeed()
  getPlaylistVideoFeed()
  getSubscriptionFeed()
  getContactFeed()
  getUserUploads()
  getUserFavorites()
  getUserProfile()
  parseFormUploadTokenResponse()
  getFormUploadToken()
  getActivityForUser()
  getFriendActivityForCurrentUser()
  getInboxFeedForCurrentUser()
  sendVideoMessage()
  replyToCommentEntry()


Class: Zend_Gdata_YouTube  - X-Ref

Service class for interacting with the YouTube Data API.

__construct($client = null,$applicationId = 'MyCompany-MyApp-1.0', $clientId = null,$developerKey = null)   X-Ref
Create Zend_Gdata_YouTube object

param: Zend_Http_Client $client (optional) The HTTP client to use when
param: string $applicationId The identity of the app in the form of
param: string $clientId The clientId issued by the YouTube dashboard
param: string $developerKey The developerKey issued by the YouTube dashboard

setHttpClient($client,$applicationId = 'MyCompany-MyApp-1.0', $clientId = null,$developerKey = null)   X-Ref
Set the Zend_Http_Client object used for communication

param: Zend_Http_Client $client The client to use for communication
return: Zend_Gdata_App Provides a fluent interface

getVideoFeed($location = null)   X-Ref
Retrieves a feed of videos.

param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The feed of videos found at the

getVideoEntry($videoId = null, $location = null,$fullEntry = false)   X-Ref
Retrieves a specific video entry.

param: mixed $videoId The ID of the video to retrieve.
param: mixed $location (optional) The URL to query or a
param: boolean $fullEntry (optional) Retrieve the full metadata for the
return: Zend_Gdata_YouTube_VideoEntry The video entry found at the

getFullVideoEntry($videoId)   X-Ref
Retrieves a video entry from the user's upload feed.

param: mixed $videoID The ID of the video to retrieve.
return: Zend_Gdata_YouTube_VideoEntry|null The video entry to be

getRelatedVideoFeed($videoId = null, $location = null)   X-Ref
Retrieves a feed of videos related to the specified video ID.

param: string $videoId The videoId of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The feed of videos found at the

getVideoResponseFeed($videoId = null, $location = null)   X-Ref
Retrieves a feed of video responses related to the specified video ID.

param: string $videoId The videoId of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The feed of videos found at the

getVideoCommentFeed($videoId = null, $location = null)   X-Ref
Retrieves a feed of comments related to the specified video ID.

param: string $videoId The videoId of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_CommentFeed The feed of videos found at the

getTopRatedVideoFeed($location = null)   X-Ref
Retrieves a feed of comments related to the specified video ID.

param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_CommentFeed The feed of videos found at the

getMostViewedVideoFeed($location = null)   X-Ref
Retrieves a feed of the most viewed videos.

param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The feed of videos found at the

getRecentlyFeaturedVideoFeed($location = null)   X-Ref
Retrieves a feed of recently featured videos.

param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The feed of videos found at the

getWatchOnMobileVideoFeed($location = null)   X-Ref
Retrieves a feed of videos recently featured for mobile devices.
These videos will have RTSP links in the $entry->mediaGroup->content

param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The feed of videos found at the

getPlaylistListFeed($user = null, $location = null)   X-Ref
Retrieves a feed which lists a user's playlist

param: string $user (optional) The username of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_PlaylistListFeed The feed of playlists

getPlaylistVideoFeed($location)   X-Ref
Retrieves a feed of videos in a particular playlist

param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_PlaylistVideoFeed The feed of videos found at

getSubscriptionFeed($user = null, $location = null)   X-Ref
Retrieves a feed of a user's subscriptions

param: string $user (optional) The username of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_SubscriptionListFeed The feed of subscriptions

getContactFeed($user = null, $location = null)   X-Ref
Retrieves a feed of a user's contacts

param: string $user (optional) The username of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_ContactFeed The feed of contacts

getUserUploads($user = null, $location = null)   X-Ref
Retrieves a user's uploads

param: string $user (optional) The username of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The videos uploaded by the user

getUserFavorites($user = null, $location = null)   X-Ref
Retrieves a user's favorites

param: string $user (optional) The username of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_VideoFeed The videos favorited by the user

getUserProfile($user = null, $location = null)   X-Ref
Retrieves a user's profile as an entry

param: string $user (optional) The username of interest
param: mixed $location (optional) The URL to query or a
return: Zend_Gdata_YouTube_UserProfileEntry The user profile entry

parseFormUploadTokenResponse($response)   X-Ref
Helper function for parsing a YouTube token response

param: string $response The service response
return: array An array containing the token and URL

getFormUploadToken($videoEntry,$url='http:)   X-Ref
Retrieves a YouTube token

param: Zend_Gdata_YouTube_VideoEntry $videoEntry The video entry
param: string $url The location as a string URL
return: array An array containing a token and URL

getActivityForUser($username)   X-Ref
Retrieves the activity feed for users

param: mixed $usernames A string identifying the usernames for which to
return: Zend_Gdata_YouTube_ActivityFeed

getFriendActivityForCurrentUser()   X-Ref
Retrieve the activity of the currently authenticated users friend.

return: Zend_Gdata_YouTube_ActivityFeed

getInboxFeedForCurrentUser()   X-Ref
Retrieve a feed of messages in the currently authenticated user's inbox.

return: Zend_Gdata_YouTube_InboxFeed|null

sendVideoMessage($body, $videoEntry = null,$videoId = null, $recipientUserName)   X-Ref
Send a video message.

Note: Either a Zend_Gdata_YouTube_VideoEntry or a valid video ID must
be provided.

param: string $body The body of the message
param: Zend_Gdata_YouTube_VideoEntry (optional) The video entry to send
param: string $videoId The id of the video to send
param: string $recipientUserName The username of the recipient
return: Zend_Gdata_YouTube_InboxEntry|null The

replyToCommentEntry($commentEntry, $commentText)   X-Ref
Post a comment in reply to an existing comment

param: $commentEntry Zend_Gdata_YouTube_CommentEntry The comment entry
param: $commentText string The text of the comment to post
return: A Zend_Gdata_YouTube_CommentEntry representing the posted



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1