Overview

Classes

  • Google_Service_YouTube
  • Google_Service_YouTube_AccessPolicy
  • Google_Service_YouTube_Activities_Resource
  • Google_Service_YouTube_Activity
  • Google_Service_YouTube_ActivityContentDetails
  • Google_Service_YouTube_ActivityContentDetailsBulletin
  • Google_Service_YouTube_ActivityContentDetailsChannelItem
  • Google_Service_YouTube_ActivityContentDetailsComment
  • Google_Service_YouTube_ActivityContentDetailsFavorite
  • Google_Service_YouTube_ActivityContentDetailsLike
  • Google_Service_YouTube_ActivityContentDetailsPlaylistItem
  • Google_Service_YouTube_ActivityContentDetailsPromotedItem
  • Google_Service_YouTube_ActivityContentDetailsRecommendation
  • Google_Service_YouTube_ActivityContentDetailsSocial
  • Google_Service_YouTube_ActivityContentDetailsSubscription
  • Google_Service_YouTube_ActivityContentDetailsUpload
  • Google_Service_YouTube_ActivityListResponse
  • Google_Service_YouTube_ActivitySnippet
  • Google_Service_YouTube_Caption
  • Google_Service_YouTube_CaptionListResponse
  • Google_Service_YouTube_Captions_Resource
  • Google_Service_YouTube_CaptionSnippet
  • Google_Service_YouTube_CdnSettings
  • Google_Service_YouTube_Channel
  • Google_Service_YouTube_ChannelAuditDetails
  • Google_Service_YouTube_ChannelBannerResource
  • Google_Service_YouTube_ChannelBanners_Resource
  • Google_Service_YouTube_ChannelBrandingSettings
  • Google_Service_YouTube_ChannelContentDetails
  • Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists
  • Google_Service_YouTube_ChannelContentOwnerDetails
  • Google_Service_YouTube_ChannelConversionPing
  • Google_Service_YouTube_ChannelConversionPings
  • Google_Service_YouTube_ChannelListResponse
  • Google_Service_YouTube_ChannelLocalization
  • Google_Service_YouTube_ChannelProfileDetails
  • Google_Service_YouTube_Channels_Resource
  • Google_Service_YouTube_ChannelSection
  • Google_Service_YouTube_ChannelSectionContentDetails
  • Google_Service_YouTube_ChannelSectionListResponse
  • Google_Service_YouTube_ChannelSectionLocalization
  • Google_Service_YouTube_ChannelSections_Resource
  • Google_Service_YouTube_ChannelSectionSnippet
  • Google_Service_YouTube_ChannelSectionTargeting
  • Google_Service_YouTube_ChannelSettings
  • Google_Service_YouTube_ChannelSnippet
  • Google_Service_YouTube_ChannelStatistics
  • Google_Service_YouTube_ChannelStatus
  • Google_Service_YouTube_ChannelTopicDetails
  • Google_Service_YouTube_Comment
  • Google_Service_YouTube_CommentListResponse
  • Google_Service_YouTube_Comments_Resource
  • Google_Service_YouTube_CommentSnippet
  • Google_Service_YouTube_CommentThread
  • Google_Service_YouTube_CommentThreadListResponse
  • Google_Service_YouTube_CommentThreadReplies
  • Google_Service_YouTube_CommentThreads_Resource
  • Google_Service_YouTube_CommentThreadSnippet
  • Google_Service_YouTube_ContentRating
  • Google_Service_YouTube_GeoPoint
  • Google_Service_YouTube_GuideCategories_Resource
  • Google_Service_YouTube_GuideCategory
  • Google_Service_YouTube_GuideCategoryListResponse
  • Google_Service_YouTube_GuideCategorySnippet
  • Google_Service_YouTube_I18nLanguage
  • Google_Service_YouTube_I18nLanguageListResponse
  • Google_Service_YouTube_I18nLanguages_Resource
  • Google_Service_YouTube_I18nLanguageSnippet
  • Google_Service_YouTube_I18nRegion
  • Google_Service_YouTube_I18nRegionListResponse
  • Google_Service_YouTube_I18nRegions_Resource
  • Google_Service_YouTube_I18nRegionSnippet
  • Google_Service_YouTube_ImageSettings
  • Google_Service_YouTube_IngestionInfo
  • Google_Service_YouTube_InvideoBranding
  • Google_Service_YouTube_InvideoPosition
  • Google_Service_YouTube_InvideoPromotion
  • Google_Service_YouTube_InvideoTiming
  • Google_Service_YouTube_LanguageTag
  • Google_Service_YouTube_LevelDetails
  • Google_Service_YouTube_LiveBroadcast
  • Google_Service_YouTube_LiveBroadcastContentDetails
  • Google_Service_YouTube_LiveBroadcastListResponse
  • Google_Service_YouTube_LiveBroadcasts_Resource
  • Google_Service_YouTube_LiveBroadcastSnippet
  • Google_Service_YouTube_LiveBroadcastStatistics
  • Google_Service_YouTube_LiveBroadcastStatus
  • Google_Service_YouTube_LiveChatBan
  • Google_Service_YouTube_LiveChatBans_Resource
  • Google_Service_YouTube_LiveChatBanSnippet
  • Google_Service_YouTube_LiveChatFanFundingEventDetails
  • Google_Service_YouTube_LiveChatMessage
  • Google_Service_YouTube_LiveChatMessageAuthorDetails
  • Google_Service_YouTube_LiveChatMessageDeletedDetails
  • Google_Service_YouTube_LiveChatMessageListResponse
  • Google_Service_YouTube_LiveChatMessageRetractedDetails
  • Google_Service_YouTube_LiveChatMessages_Resource
  • Google_Service_YouTube_LiveChatMessageSnippet
  • Google_Service_YouTube_LiveChatModerator
  • Google_Service_YouTube_LiveChatModeratorListResponse
  • Google_Service_YouTube_LiveChatModerators_Resource
  • Google_Service_YouTube_LiveChatModeratorSnippet
  • Google_Service_YouTube_LiveChatPollClosedDetails
  • Google_Service_YouTube_LiveChatPollEditedDetails
  • Google_Service_YouTube_LiveChatPollItem
  • Google_Service_YouTube_LiveChatPollOpenedDetails
  • Google_Service_YouTube_LiveChatPollVotedDetails
  • Google_Service_YouTube_LiveChatSuperChatDetails
  • Google_Service_YouTube_LiveChatSuperStickerDetails
  • Google_Service_YouTube_LiveChatTextMessageDetails
  • Google_Service_YouTube_LiveChatUserBannedMessageDetails
  • Google_Service_YouTube_LiveStream
  • Google_Service_YouTube_LiveStreamConfigurationIssue
  • Google_Service_YouTube_LiveStreamContentDetails
  • Google_Service_YouTube_LiveStreamHealthStatus
  • Google_Service_YouTube_LiveStreamListResponse
  • Google_Service_YouTube_LiveStreams_Resource
  • Google_Service_YouTube_LiveStreamSnippet
  • Google_Service_YouTube_LiveStreamStatus
  • Google_Service_YouTube_LocalizedProperty
  • Google_Service_YouTube_LocalizedString
  • Google_Service_YouTube_Member
  • Google_Service_YouTube_MemberListResponse
  • Google_Service_YouTube_Members_Resource
  • Google_Service_YouTube_MembershipsDetails
  • Google_Service_YouTube_MembershipsDuration
  • Google_Service_YouTube_MembershipsDurationAtLevel
  • Google_Service_YouTube_MembershipsLevel
  • Google_Service_YouTube_MembershipsLevelListResponse
  • Google_Service_YouTube_MembershipsLevels_Resource
  • Google_Service_YouTube_MembershipsLevelSnippet
  • Google_Service_YouTube_MemberSnippet
  • Google_Service_YouTube_MonitorStreamInfo
  • Google_Service_YouTube_Nonprofit
  • Google_Service_YouTube_NonprofitId
  • Google_Service_YouTube_PageInfo
  • Google_Service_YouTube_Playlist
  • Google_Service_YouTube_PlaylistContentDetails
  • Google_Service_YouTube_PlaylistItem
  • Google_Service_YouTube_PlaylistItemContentDetails
  • Google_Service_YouTube_PlaylistItemListResponse
  • Google_Service_YouTube_PlaylistItems_Resource
  • Google_Service_YouTube_PlaylistItemSnippet
  • Google_Service_YouTube_PlaylistItemStatus
  • Google_Service_YouTube_PlaylistListResponse
  • Google_Service_YouTube_PlaylistLocalization
  • Google_Service_YouTube_PlaylistPlayer
  • Google_Service_YouTube_Playlists_Resource
  • Google_Service_YouTube_PlaylistSnippet
  • Google_Service_YouTube_PlaylistStatus
  • Google_Service_YouTube_PromotedItem
  • Google_Service_YouTube_PromotedItemId
  • Google_Service_YouTube_PropertyValue
  • Google_Service_YouTube_ResourceId
  • Google_Service_YouTube_Search_Resource
  • Google_Service_YouTube_SearchListResponse
  • Google_Service_YouTube_SearchResult
  • Google_Service_YouTube_SearchResultSnippet
  • Google_Service_YouTube_Sponsor
  • Google_Service_YouTube_SponsorListResponse
  • Google_Service_YouTube_Sponsors_Resource
  • Google_Service_YouTube_SponsorSnippet
  • Google_Service_YouTube_Subscription
  • Google_Service_YouTube_SubscriptionContentDetails
  • Google_Service_YouTube_SubscriptionListResponse
  • Google_Service_YouTube_Subscriptions_Resource
  • Google_Service_YouTube_SubscriptionSnippet
  • Google_Service_YouTube_SubscriptionSubscriberSnippet
  • Google_Service_YouTube_SuperChatEvent
  • Google_Service_YouTube_SuperChatEventListResponse
  • Google_Service_YouTube_SuperChatEvents_Resource
  • Google_Service_YouTube_SuperChatEventSnippet
  • Google_Service_YouTube_SuperStickerMetadata
  • Google_Service_YouTube_Thumbnail
  • Google_Service_YouTube_ThumbnailDetails
  • Google_Service_YouTube_Thumbnails_Resource
  • Google_Service_YouTube_ThumbnailSetResponse
  • Google_Service_YouTube_TokenPagination
  • Google_Service_YouTube_Video
  • Google_Service_YouTube_VideoAbuseReport
  • Google_Service_YouTube_VideoAbuseReportReason
  • Google_Service_YouTube_VideoAbuseReportReasonListResponse
  • Google_Service_YouTube_VideoAbuseReportReasons_Resource
  • Google_Service_YouTube_VideoAbuseReportReasonSnippet
  • Google_Service_YouTube_VideoAbuseReportSecondaryReason
  • Google_Service_YouTube_VideoAgeGating
  • Google_Service_YouTube_VideoCategories_Resource
  • Google_Service_YouTube_VideoCategory
  • Google_Service_YouTube_VideoCategoryListResponse
  • Google_Service_YouTube_VideoCategorySnippet
  • Google_Service_YouTube_VideoContentDetails
  • Google_Service_YouTube_VideoContentDetailsRegionRestriction
  • Google_Service_YouTube_VideoFileDetails
  • Google_Service_YouTube_VideoFileDetailsAudioStream
  • Google_Service_YouTube_VideoFileDetailsVideoStream
  • Google_Service_YouTube_VideoGetRatingResponse
  • Google_Service_YouTube_VideoListResponse
  • Google_Service_YouTube_VideoLiveStreamingDetails
  • Google_Service_YouTube_VideoLocalization
  • Google_Service_YouTube_VideoMonetizationDetails
  • Google_Service_YouTube_VideoPlayer
  • Google_Service_YouTube_VideoProcessingDetails
  • Google_Service_YouTube_VideoProcessingDetailsProcessingProgress
  • Google_Service_YouTube_VideoProjectDetails
  • Google_Service_YouTube_VideoRating
  • Google_Service_YouTube_VideoRecordingDetails
  • Google_Service_YouTube_Videos_Resource
  • Google_Service_YouTube_VideoSnippet
  • Google_Service_YouTube_VideoStatistics
  • Google_Service_YouTube_VideoStatus
  • Google_Service_YouTube_VideoSuggestions
  • Google_Service_YouTube_VideoSuggestionsTagSuggestion
  • Google_Service_YouTube_VideoTopicDetails
  • Google_Service_YouTube_WatchSettings
  • Google_Service_YouTube_Watermarks_Resource
  • Overview
  • Class
  • Tree

Class Google_Service_YouTube_Videos_Resource

The "videos" collection of methods. Typical usage is:

 $youtubeService = new Google_Service_YouTube(...);
 $videos = $youtubeService->videos;
Google_Service_Resource
Extended by Google_Service_YouTube_Videos_Resource
Located at YouTube.php
Methods summary
public
# delete( string $id, array $optParams = array() )

Deletes a YouTube video. (videos.delete)

Deletes a YouTube video. (videos.delete)

Parameters

$id
The id parameter specifies the YouTube video ID for the resource that is being deleted. In a video resource, the id property specifies the video's ID.
$optParams
Optional parameters.

Opt_param

string onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
public Google_Service_YouTube_VideoGetRatingResponse
# getRating( string $id, array $optParams = array() )

Retrieves the ratings that the authorized user gave to a list of specified videos. (videos.getRating)

Retrieves the ratings that the authorized user gave to a list of specified videos. (videos.getRating)

Parameters

$id
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) for which you are retrieving rating data. In a video resource, the id property specifies the video's ID.
$optParams
Optional parameters.

Returns

Google_Service_YouTube_VideoGetRatingResponse
Google_Service_YouTube_VideoGetRatingResponse

Opt_param

string onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
public Google_Service_YouTube_Video
# insert( string $part, Google_Service_YouTube_Video $postBody, array $optParams = array() )

Uploads a video to YouTube and optionally sets the video's metadata. (videos.insert)

Uploads a video to YouTube and optionally sets the video's metadata. (videos.insert)

Parameters

$part
The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_YouTube_Video
Google_Service_YouTube_Video

Opt_param

bool autoLevels The autoLevels parameter indicates whether YouTube should automatically enhance the video's lighting and color.
bool notifySubscribers The notifySubscribers parameter indicates whether YouTube should send a notification about the new video to users who subscribe to the video's channel. A parameter value of True indicates that subscribers will be notified of newly uploaded videos. However, a channel owner who is uploading many videos might prefer to set the value to False to avoid sending a notification about each new video to the channel's subscribers.
string onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
string onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
bool stabilize The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera motions.
public Google_Service_YouTube_VideoListResponse
# listVideos( string $part, array $optParams = array() )

Returns a list of videos that match the API request parameters. (videos.listVideos)

Returns a list of videos that match the API request parameters. (videos.listVideos)

Parameters

$part
The part parameter specifies a comma-separated list of one or more video resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set part=snippet, the API response will contain all of those properties.
$optParams
Optional parameters.

Returns

Google_Service_YouTube_VideoListResponse
Google_Service_YouTube_VideoListResponse

Opt_param

string chart The chart parameter identifies the chart that you want to retrieve.
string hl The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by the i18nLanguages.list method. If localized resource details are available in that language, the resource's snippet.localized object will contain the localized values. However, if localized details are not available, the snippet.localized object will contain resource details in the resource's default language.
string id The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID.
string locale DEPRECATED
string maxHeight The maxHeight parameter specifies a maximum height of the embedded player. If maxWidth is provided, maxHeight may not be reached in order to not violate the width request.
string maxResults The maxResults parameter specifies the maximum number of items that should be returned in the result set. Note: This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
string maxWidth The maxWidth parameter specifies a maximum width of the embedded player. If maxHeight is provided, maxWidth may not be reached in order to not violate the height request.
string myRating Set this parameter's value to like or dislike to instruct the API to only return videos liked or disliked by the authenticated user.
string onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
string pageToken The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. Note: This parameter is supported for use in conjunction with the myRating and chart parameters, but it is not supported for use in conjunction with the id parameter.
string regionCode The regionCode parameter instructs the API to select a video chart available in the specified region. This parameter can only be used in conjunction with the chart parameter. The parameter value is an ISO 3166-1 alpha-2 country code.
string videoCategoryId The videoCategoryId parameter identifies the video category for which the chart should be retrieved. This parameter can only be used in conjunction with the chart parameter. By default, charts are not restricted to a particular category.
public
# rate( string $id, string $rating, array $optParams = array() )

Add a like or dislike rating to a video or remove a rating from a video. (videos.rate)

Add a like or dislike rating to a video or remove a rating from a video. (videos.rate)

Parameters

$id
The id parameter specifies the YouTube video ID of the video that is being rated or having its rating removed.
$rating
Specifies the rating to record.
$optParams
Optional parameters.
public
# reportAbuse( Google_Service_YouTube_VideoAbuseReport $postBody, array $optParams = array() )

Report abuse for a video. (videos.reportAbuse)

Report abuse for a video. (videos.reportAbuse)

Parameters

$postBody
$optParams
Optional parameters.

Opt_param

string onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
public Google_Service_YouTube_Video
# update( string $part, Google_Service_YouTube_Video $postBody, array $optParams = array() )

Updates a video's metadata. (videos.update)

Updates a video's metadata. (videos.update)

Parameters

$part
The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_YouTube_Video
Google_Service_YouTube_Video

Opt_param

string onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.
© 2020 Google Inc.
YouTube Data API documentation generated by ApiGen 2.8.0