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 v3-rev20210410-1.31.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
        As this is not an insert in a strict sense (it supports uploading/setting of a thumbnail for multiple videos, which doesn't result in creation of a single resource), I use a custom verb here. 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 - Returns the Thumbnail with the given video IDs for Stubby or Apiary.
        Returns:
        the request
        Throws:
        IOException
      • set

        public YouTube.Thumbnails.Set set(String videoId,
                                          AbstractInputStreamContent mediaContent)
                                   throws IOException
        As this is not an insert in a strict sense (it supports uploading/setting of a thumbnail for multiple videos, which doesn't result in creation of a single resource), I use a custom verb here. 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 - Returns the Thumbnail with the given video IDs for Stubby or Apiary.
        mediaContent - The media HTTP content or null if none.
        Returns:
        the request
        Throws:
        IOException - if the initialization of the request fails

Copyright © 2011–2021 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy