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

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







YouTube.Channels (YouTube Data API v3-rev20200402-1.30.9)












com.google.api.services.youtube

Class YouTube.Channels

  • Enclosing class:
    YouTube


    public class YouTube.Channels
    extends Object
    The "channels" collection of methods.
    • Constructor Detail

      • Channels

        public Channels()
    • Method Detail

      • list

        public YouTube.Channels.List list(String part)
                                   throws IOException
        Returns a collection of zero or more channel resources that match the request criteria. Create a request for the method "channels.list". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        part - The part parameter specifies a comma-separated list of one or more channel 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 channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.
        Returns:
        the request
        Throws:
        IOException
      • update

        public YouTube.Channels.Update update(String part,
                                              Channel content)
                                       throws IOException
        Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties. Create a request for the method "channels.update". This request holds the parameters needed by the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        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. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.
        content - the Channel
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy