All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.youtube.YouTube.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240909-2.0.0
Show newest version






YouTube (YouTube Data API v3 v3-rev20230319-2.0.0)












com.google.api.services.youtube

Class YouTube

  • java.lang.Object
    • com.google.api.client.googleapis.services.AbstractGoogleClient
      • com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
        • com.google.api.services.youtube.YouTube


  • public class YouTube
    extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
    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

    This service uses YouTubeRequestInitializer to initialize global parameters via its YouTube.Builder.

    Since:
    1.3
    Author:
    Google, Inc.
    • Field Detail

      • DEFAULT_ROOT_URL

        public static final String DEFAULT_ROOT_URL
        The default encoded root URL of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.7
        See Also:
        Constant Field Values
      • DEFAULT_MTLS_ROOT_URL

        public static final String DEFAULT_MTLS_ROOT_URL
        The default encoded mTLS root URL of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.31
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_PATH

        public static final String DEFAULT_SERVICE_PATH
        The default encoded service path of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.7
        See Also:
        Constant Field Values
      • DEFAULT_BATCH_PATH

        public static final String DEFAULT_BATCH_PATH
        The default encoded batch path of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.23
        See Also:
        Constant Field Values
      • DEFAULT_BASE_URL

        public static final String DEFAULT_BASE_URL
        The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • YouTube

        public YouTube(com.google.api.client.http.HttpTransport transport,
                       com.google.api.client.json.JsonFactory jsonFactory,
                       com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
        Constructor.

        Use YouTube.Builder if you need to specify any of the optional parameters.

        Parameters:
        transport - HTTP transport, which should normally be:
        • Google App Engine: com.google.api.client.extensions.appengine.http.UrlFetchTransport
        • Android: newCompatibleTransport from com.google.api.client.extensions.android.http.AndroidHttp
        • Java: com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
        jsonFactory - JSON factory, which may be:
        • Jackson: com.google.api.client.json.jackson2.JacksonFactory
        • Google GSON: com.google.api.client.json.gson.GsonFactory
        • Android Honeycomb or higher: com.google.api.client.extensions.android.json.AndroidJsonFactory
        httpRequestInitializer - HTTP request initializer or null for none
        Since:
        1.7
    • Method Detail

      • initialize

        protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest)
                           throws IOException
        Overrides:
        initialize in class com.google.api.client.googleapis.services.AbstractGoogleClient
        Throws:
        IOException
      • abuseReports

        public YouTube.AbuseReports abuseReports()
        An accessor for creating requests from the AbuseReports collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.AbuseReports.List request = youtube.abuseReports().list(parameters ...)
         
        Returns:
        the resource collection
      • activities

        public YouTube.Activities activities()
        An accessor for creating requests from the Activities collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Activities.List request = youtube.activities().list(parameters ...)
         
        Returns:
        the resource collection
      • captions

        public YouTube.Captions captions()
        An accessor for creating requests from the Captions collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Captions.List request = youtube.captions().list(parameters ...)
         
        Returns:
        the resource collection
      • channelBanners

        public YouTube.ChannelBanners channelBanners()
        An accessor for creating requests from the ChannelBanners collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.ChannelBanners.List request = youtube.channelBanners().list(parameters ...)
         
        Returns:
        the resource collection
      • channelSections

        public YouTube.ChannelSections channelSections()
        An accessor for creating requests from the ChannelSections collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.ChannelSections.List request = youtube.channelSections().list(parameters ...)
         
        Returns:
        the resource collection
      • channels

        public YouTube.Channels channels()
        An accessor for creating requests from the Channels collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Channels.List request = youtube.channels().list(parameters ...)
         
        Returns:
        the resource collection
      • commentThreads

        public YouTube.CommentThreads commentThreads()
        An accessor for creating requests from the CommentThreads collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.CommentThreads.List request = youtube.commentThreads().list(parameters ...)
         
        Returns:
        the resource collection
      • comments

        public YouTube.Comments comments()
        An accessor for creating requests from the Comments collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Comments.List request = youtube.comments().list(parameters ...)
         
        Returns:
        the resource collection
      • i18nLanguages

        public YouTube.I18nLanguages i18nLanguages()
        An accessor for creating requests from the I18nLanguages collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.I18nLanguages.List request = youtube.i18nLanguages().list(parameters ...)
         
        Returns:
        the resource collection
      • i18nRegions

        public YouTube.I18nRegions i18nRegions()
        An accessor for creating requests from the I18nRegions collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.I18nRegions.List request = youtube.i18nRegions().list(parameters ...)
         
        Returns:
        the resource collection
      • liveBroadcasts

        public YouTube.LiveBroadcasts liveBroadcasts()
        An accessor for creating requests from the LiveBroadcasts collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.LiveBroadcasts.List request = youtube.liveBroadcasts().list(parameters ...)
         
        Returns:
        the resource collection
      • liveChatBans

        public YouTube.LiveChatBans liveChatBans()
        An accessor for creating requests from the LiveChatBans collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.LiveChatBans.List request = youtube.liveChatBans().list(parameters ...)
         
        Returns:
        the resource collection
      • liveChatMessages

        public YouTube.LiveChatMessages liveChatMessages()
        An accessor for creating requests from the LiveChatMessages collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.LiveChatMessages.List request = youtube.liveChatMessages().list(parameters ...)
         
        Returns:
        the resource collection
      • liveChatModerators

        public YouTube.LiveChatModerators liveChatModerators()
        An accessor for creating requests from the LiveChatModerators collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.LiveChatModerators.List request = youtube.liveChatModerators().list(parameters ...)
         
        Returns:
        the resource collection
      • liveStreams

        public YouTube.LiveStreams liveStreams()
        An accessor for creating requests from the LiveStreams collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.LiveStreams.List request = youtube.liveStreams().list(parameters ...)
         
        Returns:
        the resource collection
      • members

        public YouTube.Members members()
        An accessor for creating requests from the Members collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Members.List request = youtube.members().list(parameters ...)
         
        Returns:
        the resource collection
      • membershipsLevels

        public YouTube.MembershipsLevels membershipsLevels()
        An accessor for creating requests from the MembershipsLevels collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.MembershipsLevels.List request = youtube.membershipsLevels().list(parameters ...)
         
        Returns:
        the resource collection
      • playlistItems

        public YouTube.PlaylistItems playlistItems()
        An accessor for creating requests from the PlaylistItems collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.PlaylistItems.List request = youtube.playlistItems().list(parameters ...)
         
        Returns:
        the resource collection
      • playlists

        public YouTube.Playlists playlists()
        An accessor for creating requests from the Playlists collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Playlists.List request = youtube.playlists().list(parameters ...)
         
        Returns:
        the resource collection
      • search

        public YouTube.Search search()
        An accessor for creating requests from the Search collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Search.List request = youtube.search().list(parameters ...)
         
        Returns:
        the resource collection
      • subscriptions

        public YouTube.Subscriptions subscriptions()
        An accessor for creating requests from the Subscriptions collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Subscriptions.List request = youtube.subscriptions().list(parameters ...)
         
        Returns:
        the resource collection
      • superChatEvents

        public YouTube.SuperChatEvents superChatEvents()
        An accessor for creating requests from the SuperChatEvents collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.SuperChatEvents.List request = youtube.superChatEvents().list(parameters ...)
         
        Returns:
        the resource collection
      • tests

        public YouTube.Tests tests()
        An accessor for creating requests from the Tests collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Tests.List request = youtube.tests().list(parameters ...)
         
        Returns:
        the resource collection
      • thirdPartyLinks

        public YouTube.ThirdPartyLinks thirdPartyLinks()
        An accessor for creating requests from the ThirdPartyLinks collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.ThirdPartyLinks.List request = youtube.thirdPartyLinks().list(parameters ...)
         
        Returns:
        the resource collection
      • thumbnails

        public YouTube.Thumbnails thumbnails()
        An accessor for creating requests from the Thumbnails collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Thumbnails.List request = youtube.thumbnails().list(parameters ...)
         
        Returns:
        the resource collection
      • videoAbuseReportReasons

        public YouTube.VideoAbuseReportReasons videoAbuseReportReasons()
        An accessor for creating requests from the VideoAbuseReportReasons collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.VideoAbuseReportReasons.List request = youtube.videoAbuseReportReasons().list(parameters ...)
         
        Returns:
        the resource collection
      • videoCategories

        public YouTube.VideoCategories videoCategories()
        An accessor for creating requests from the VideoCategories collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.VideoCategories.List request = youtube.videoCategories().list(parameters ...)
         
        Returns:
        the resource collection
      • videos

        public YouTube.Videos videos()
        An accessor for creating requests from the Videos collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Videos.List request = youtube.videos().list(parameters ...)
         
        Returns:
        the resource collection
      • watermarks

        public YouTube.Watermarks watermarks()
        An accessor for creating requests from the Watermarks collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Watermarks.List request = youtube.watermarks().list(parameters ...)
         
        Returns:
        the resource collection
      • youtube

        public YouTube.Youtube youtube()
        An accessor for creating requests from the Youtube collection.

        The typical use is:

            YouTube youtube = new YouTube(...);
            YouTube.Youtube.List request = youtube.youtube().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2023 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy