com.adobe.webapis.youtube

Class YouTubeService

com.adobe.webapis.ServiceBase


public class YouTubeService
extends URLLoaderBase

The YouTubeService class abstracts all functionality for the YouTube API.




Property Summary
apiKey:String
The developer API can be generated from your profile page on YouTube.com.
static END_POINT:String
This is the end point for the service that we talk to.
users:Users  [read-only]
videos:Videos  [read-only]


Event Summary
onGetDetails Broadcast when video information has been loaded from YouTube in response to Videos.getDetails() being called.
onGetProfile Broadcast when video information has been loaded from YouTube in response to Users.getProfile() being called.
onListByTag Broadcast when video information has been loaded from YouTube in response to Videos.listByTag() being called.
onListByUser Broadcast when video information has been loaded from YouTube in response to Videos.listByUser() being called.
onListFavoriteVideos Broadcast when video information has been loaded from YouTube in response to Users.listFavoriteVideo() being called.
onListFeatured Broadcast when video information has been loaded from YouTube in response to Videos.listFeatured() being called.
onListFriends Broadcast when video information has been loaded from YouTube in response to Users.listFriends() being called.

Events inherited from class URLLoaderBase
ioError, progress, securityError


Constructor Summary
YouTubeService(apiKey:String = "")


Method Summary

Methods inherited from class URLLoaderBase
getURLLoader


Property Detail

apiKey Property

public var apiKey:String

The developer API can be generated from your profile page on YouTube.com.

END_POINT Property

public static var END_POINT:String

This is the end point for the service that we talk to.

users Property

Usage
    users:Users

Implementation
    public function get users() : Users


videos Property

Usage
    videos:Videos

Implementation
    public function get videos() : Videos



Event Detail

onGetDetails Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Videos.getDetails() being called. The event contains the following properties: data.videoDetails A VideoDetail instance

See also
com.adobe.webapis.youtube.methodgroups.Videos.getDetails, com.adobe.webapis.youtube.VideoDetails


onGetProfile Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Users.getProfile() being called. The event contains the following properties: data.profile The Profile for the specified user.

See also
com.adobe.webapis.youtube.methodgroups.Users.getProfile, com.adobe.webapis.youtube.Profile


onListByTag Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Videos.listByTag() being called. The event contains the following properties: data.videoList An Array of Video ojects.

See also
com.adobe.webapis.youtube.methodgroups.Videos.listByTag, com.adobe.webapis.youtube.Video


onListByUser Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Videos.listByUser() being called. The event contains the following properties: data.videoList An Array of Video ojects.

See also
com.adobe.webapis.youtube.methodgroups.Videos.listByUser, com.adobe.webapis.youtube.Video


onListFavoriteVideos Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Users.listFavoriteVideo() being called. The event contains the following properties: data.videoList An Array of Video ojects.

See also
com.adobe.webapis.youtube.methodgroups.Users.listFavoriteVideo, com.adobe.webapis.youtube.Video


onListFeatured Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Videos.listFeatured() being called. The event contains the following properties: data.videoList An Array of Video ojects.

See also
com.adobe.webapis.youtube.methodgroups.Videos.listFeatured, com.adobe.webapis.youtube.Video


onListFriends Event


Event Object Type: com.adobe.webapis.youtube.events.YouTubeServicetEvent

Broadcast when video information has been loaded from YouTube in response to Users.listFriends() being called. The event contains the following properties: data.friendList An Array of Friend ojects.

See also
com.adobe.webapis.youtube.methodgroups.Users.listFriends, com.adobe.webapis.youtube.Friend


Constructor Detail

YouTubeService Constructor

public function YouTubeService(apiKey:String = "")

Parameters
apiKey:String (default = "")