public class YouTube
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
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
This service uses YouTubeRequestInitializer
to initialize global parameters via its
YouTube.Builder
.
Modifier and Type | Class and Description |
---|---|
class |
YouTube.AbuseReports
The "abuseReports" collection of methods.
|
class |
YouTube.Activities
The "activities" collection of methods.
|
static class |
YouTube.Builder
Builder for
YouTube . |
class |
YouTube.Captions
The "captions" collection of methods.
|
class |
YouTube.ChannelBanners
The "channelBanners" collection of methods.
|
class |
YouTube.Channels
The "channels" collection of methods.
|
class |
YouTube.ChannelSections
The "channelSections" collection of methods.
|
class |
YouTube.Comments
The "comments" collection of methods.
|
class |
YouTube.CommentThreads
The "commentThreads" collection of methods.
|
class |
YouTube.I18nLanguages
The "i18nLanguages" collection of methods.
|
class |
YouTube.I18nRegions
The "i18nRegions" collection of methods.
|
class |
YouTube.LiveBroadcasts
The "liveBroadcasts" collection of methods.
|
class |
YouTube.LiveChatBans
The "liveChatBans" collection of methods.
|
class |
YouTube.LiveChatMessages
The "liveChatMessages" collection of methods.
|
class |
YouTube.LiveChatModerators
The "liveChatModerators" collection of methods.
|
class |
YouTube.LiveStreams
The "liveStreams" collection of methods.
|
class |
YouTube.Members
The "members" collection of methods.
|
class |
YouTube.MembershipsLevels
The "membershipsLevels" collection of methods.
|
class |
YouTube.PlaylistImages
The "playlistImages" collection of methods.
|
class |
YouTube.PlaylistItems
The "playlistItems" collection of methods.
|
class |
YouTube.Playlists
The "playlists" collection of methods.
|
class |
YouTube.Search
The "search" collection of methods.
|
class |
YouTube.Subscriptions
The "subscriptions" collection of methods.
|
class |
YouTube.SuperChatEvents
The "superChatEvents" collection of methods.
|
class |
YouTube.Tests
The "tests" collection of methods.
|
class |
YouTube.ThirdPartyLinks
The "thirdPartyLinks" collection of methods.
|
class |
YouTube.Thumbnails
The "thumbnails" collection of methods.
|
class |
YouTube.VideoAbuseReportReasons
The "videoAbuseReportReasons" collection of methods.
|
class |
YouTube.VideoCategories
The "videoCategories" collection of methods.
|
class |
YouTube.Videos
The "videos" collection of methods.
|
class |
YouTube.Watermarks
The "watermarks" collection of methods.
|
class |
YouTube.Youtube
The "youtube" collection of methods.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static String |
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
|
static String |
DEFAULT_MTLS_ROOT_URL
The default encoded mTLS root URL of the service.
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
YouTube(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
YouTube.AbuseReports |
abuseReports()
An accessor for creating requests from the AbuseReports collection.
|
YouTube.Activities |
activities()
An accessor for creating requests from the Activities collection.
|
YouTube.Captions |
captions()
An accessor for creating requests from the Captions collection.
|
YouTube.ChannelBanners |
channelBanners()
An accessor for creating requests from the ChannelBanners collection.
|
YouTube.Channels |
channels()
An accessor for creating requests from the Channels collection.
|
YouTube.ChannelSections |
channelSections()
An accessor for creating requests from the ChannelSections collection.
|
YouTube.Comments |
comments()
An accessor for creating requests from the Comments collection.
|
YouTube.CommentThreads |
commentThreads()
An accessor for creating requests from the CommentThreads collection.
|
YouTube.I18nLanguages |
i18nLanguages()
An accessor for creating requests from the I18nLanguages collection.
|
YouTube.I18nRegions |
i18nRegions()
An accessor for creating requests from the I18nRegions collection.
|
protected void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
YouTube.LiveBroadcasts |
liveBroadcasts()
An accessor for creating requests from the LiveBroadcasts collection.
|
YouTube.LiveChatBans |
liveChatBans()
An accessor for creating requests from the LiveChatBans collection.
|
YouTube.LiveChatMessages |
liveChatMessages()
An accessor for creating requests from the LiveChatMessages collection.
|
YouTube.LiveChatModerators |
liveChatModerators()
An accessor for creating requests from the LiveChatModerators collection.
|
YouTube.LiveStreams |
liveStreams()
An accessor for creating requests from the LiveStreams collection.
|
YouTube.Members |
members()
An accessor for creating requests from the Members collection.
|
YouTube.MembershipsLevels |
membershipsLevels()
An accessor for creating requests from the MembershipsLevels collection.
|
YouTube.PlaylistImages |
playlistImages()
An accessor for creating requests from the PlaylistImages collection.
|
YouTube.PlaylistItems |
playlistItems()
An accessor for creating requests from the PlaylistItems collection.
|
YouTube.Playlists |
playlists()
An accessor for creating requests from the Playlists collection.
|
YouTube.Search |
search()
An accessor for creating requests from the Search collection.
|
YouTube.Subscriptions |
subscriptions()
An accessor for creating requests from the Subscriptions collection.
|
YouTube.SuperChatEvents |
superChatEvents()
An accessor for creating requests from the SuperChatEvents collection.
|
YouTube.Tests |
tests()
An accessor for creating requests from the Tests collection.
|
YouTube.ThirdPartyLinks |
thirdPartyLinks()
An accessor for creating requests from the ThirdPartyLinks collection.
|
YouTube.Thumbnails |
thumbnails()
An accessor for creating requests from the Thumbnails collection.
|
YouTube.VideoAbuseReportReasons |
videoAbuseReportReasons()
An accessor for creating requests from the VideoAbuseReportReasons collection.
|
YouTube.VideoCategories |
videoCategories()
An accessor for creating requests from the VideoCategories collection.
|
YouTube.Videos |
videos()
An accessor for creating requests from the Videos collection.
|
YouTube.Watermarks |
watermarks()
An accessor for creating requests from the Watermarks collection.
|
YouTube.Youtube |
youtube()
An accessor for creating requests from the Youtube collection.
|
getJsonFactory, getObjectParser
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks, getUniverseDomain, validateUniverseDomain
public static final String DEFAULT_ROOT_URL
public static final String DEFAULT_MTLS_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
public static final String DEFAULT_BATCH_PATH
public static final String DEFAULT_BASE_URL
public YouTube(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use YouTube.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
IOException
public YouTube.AbuseReports abuseReports()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.AbuseReports.List request = youtube.abuseReports().list(parameters ...)
public YouTube.Activities activities()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Activities.List request = youtube.activities().list(parameters ...)
public YouTube.Captions captions()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Captions.List request = youtube.captions().list(parameters ...)
public YouTube.ChannelBanners channelBanners()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.ChannelBanners.List request = youtube.channelBanners().list(parameters ...)
public YouTube.ChannelSections channelSections()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.ChannelSections.List request = youtube.channelSections().list(parameters ...)
public YouTube.Channels channels()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Channels.List request = youtube.channels().list(parameters ...)
public YouTube.CommentThreads commentThreads()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.CommentThreads.List request = youtube.commentThreads().list(parameters ...)
public YouTube.Comments comments()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Comments.List request = youtube.comments().list(parameters ...)
public YouTube.I18nLanguages i18nLanguages()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.I18nLanguages.List request = youtube.i18nLanguages().list(parameters ...)
public YouTube.I18nRegions i18nRegions()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.I18nRegions.List request = youtube.i18nRegions().list(parameters ...)
public YouTube.LiveBroadcasts liveBroadcasts()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.LiveBroadcasts.List request = youtube.liveBroadcasts().list(parameters ...)
public YouTube.LiveChatBans liveChatBans()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.LiveChatBans.List request = youtube.liveChatBans().list(parameters ...)
public YouTube.LiveChatMessages liveChatMessages()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.LiveChatMessages.List request = youtube.liveChatMessages().list(parameters ...)
public YouTube.LiveChatModerators liveChatModerators()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.LiveChatModerators.List request = youtube.liveChatModerators().list(parameters ...)
public YouTube.LiveStreams liveStreams()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.LiveStreams.List request = youtube.liveStreams().list(parameters ...)
public YouTube.Members members()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Members.List request = youtube.members().list(parameters ...)
public YouTube.MembershipsLevels membershipsLevels()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.MembershipsLevels.List request = youtube.membershipsLevels().list(parameters ...)
public YouTube.PlaylistImages playlistImages()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.PlaylistImages.List request = youtube.playlistImages().list(parameters ...)
public YouTube.PlaylistItems playlistItems()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.PlaylistItems.List request = youtube.playlistItems().list(parameters ...)
public YouTube.Playlists playlists()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Playlists.List request = youtube.playlists().list(parameters ...)
public YouTube.Search search()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Search.List request = youtube.search().list(parameters ...)
public YouTube.Subscriptions subscriptions()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Subscriptions.List request = youtube.subscriptions().list(parameters ...)
public YouTube.SuperChatEvents superChatEvents()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.SuperChatEvents.List request = youtube.superChatEvents().list(parameters ...)
public YouTube.Tests tests()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Tests.List request = youtube.tests().list(parameters ...)
public YouTube.ThirdPartyLinks thirdPartyLinks()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.ThirdPartyLinks.List request = youtube.thirdPartyLinks().list(parameters ...)
public YouTube.Thumbnails thumbnails()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Thumbnails.List request = youtube.thumbnails().list(parameters ...)
public YouTube.VideoAbuseReportReasons videoAbuseReportReasons()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.VideoAbuseReportReasons.List request = youtube.videoAbuseReportReasons().list(parameters ...)
public YouTube.VideoCategories videoCategories()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.VideoCategories.List request = youtube.videoCategories().list(parameters ...)
public YouTube.Videos videos()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Videos.List request = youtube.videos().list(parameters ...)
public YouTube.Watermarks watermarks()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Watermarks.List request = youtube.watermarks().list(parameters ...)
public YouTube.Youtube youtube()
The typical use is:
YouTube youtube = new YouTube(...);
YouTube.Youtube.List request = youtube.youtube().list(parameters ...)
Copyright © 2011–2024 Google. All rights reserved.