target.apidocs.com.google.api.services.youtube.YouTube.Thumbnails.html Maven / Gradle / Ivy
YouTube.Thumbnails (YouTube Data API v3 v3-rev20230319-2.0.0)
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)
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.
YouTube.Thumbnails.Set
set(String videoId,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
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.
-
-
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,
com.google.api.client.http.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–2023 Google. All rights reserved.