
target.apidocs.com.google.api.services.youtube.YouTube.Thumbnails.html Maven / Gradle / Ivy
YouTube.Thumbnails (YouTube Data API v3-rev20200213-1.30.9)
com.google.api.services.youtube
Class YouTube.Thumbnails
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.Thumbnails
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.Thumbnails.Set
-
Constructor Summary
Constructors
Constructor and Description
Thumbnails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.Thumbnails.Set
set(String videoId)
Uploads a custom video thumbnail to YouTube and sets it for a video.
YouTube.Thumbnails.Set
set(String videoId,
AbstractInputStreamContent mediaContent)
Uploads a custom video thumbnail to YouTube and sets it for a video.
-
-
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,
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–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy