class YouTube extends Service (View source)

Service definition for YouTube (v3).

The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists, and channels.

For more information about this service, see the API Documentation

Constants

YOUTUBE

Manage your YouTube account.

YOUTUBE_CHANNEL_MEMBERSHIPS_CREATOR

See a list of your current active channel members, their current level, and when they became a member.

YOUTUBE_FORCE_SSL

See, edit, and permanently delete your YouTube videos, ratings, comments and captions.

YOUTUBE_READONLY

View your YouTube account.

YOUTUBE_UPLOAD

Manage your YouTube videos.

YOUTUBEPARTNER

View and manage your assets and associated content on YouTube.

YOUTUBEPARTNER_CHANNEL_AUDIT

View private information of your YouTube channel relevant during the audit process with a YouTube partner.

Properties

$abuseReports
$activities
$captions
$channelBanners
$channelSections
$channels
$commentThreads
$comments
$i18nLanguages
$i18nRegions
$liveBroadcasts
$liveChatBans
$liveChatMessages
$liveChatModerators
$liveStreams
$members
$membershipsLevels
$playlistImages
$playlistItems
$playlists
$search
$subscriptions
$superChatEvents
$tests
$thirdPartyLinks
$thumbnails
$videoAbuseReportReasons
$videoCategories
$videos
$watermarks
$youtube_v3
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the YouTube service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the YouTube service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.