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

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







YouTube.Thumbnails (YouTube Data API v3-rev20190415-1.28.0)












com.google.api.services.youtube

Class YouTube.Thumbnails

  • Enclosing class:
    YouTube


    public class YouTube.Thumbnails
    extends Object
    The "thumbnails" collection of methods.
    • Constructor Detail

      • Thumbnails

        public Thumbnails()
    • Method Detail

      • set

        public YouTube.Thumbnails.Set set(String videoId)
                                   throws IOException
        Uploads a custom video thumbnail to YouTube and sets it for a video. Create a request for the method "thumbnails.set". 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:
        videoId - The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided.
        Returns:
        the request
        Throws:
        IOException
      • set

        public YouTube.Thumbnails.Set set(String videoId,
                                          com.google.api.client.http.AbstractInputStreamContent mediaContent)
                                   throws IOException
        Uploads a custom video thumbnail to YouTube and sets it for a video. Create a request for the method "thumbnails.set". This request holds the parameters needed by the the youtube server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        This method should be used for uploading media content.

        Parameters:
        videoId - The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided.
        mediaContent - The media HTTP content or null if none.
        Returns:
        the request
        Throws:
        IOException - if the initialization of the request fails

Copyright © 2011–2019 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy