public class YouTube.Videos.List extends YouTubeRequest<VideoListResponse>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Videos.List(String part)
Returns a list of videos that match the API request parameters.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getId()
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s)
that are being retrieved.
|
Long |
getMaxResults()
USE_DESCRIPTION --- channels:list:maxResults [default: 5] [minimum: 1] [maximum: 50]
|
String |
getMyRating()
Set this parameter's value to like or dislike to instruct the API to only return videos liked or
disliked by the authenticated user.
|
String |
getOnBehalfOfContentOwner()
The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of
the content owner specified in the parameter value.
|
String |
getPageToken()
USE_DESCRIPTION --- channels:list:pageToken
|
String |
getPart()
The part parameter specifies a comma-separated list of one or more video resource properties that
the API response will include.
|
YouTube.Videos.List |
setAlt(String alt)
Data format for the response.
|
YouTube.Videos.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.List |
setId(String id)
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the
resource(s) that are being retrieved.
|
YouTube.Videos.List |
setKey(String key)
API key.
|
YouTube.Videos.List |
setMaxResults(Long maxResults)
USE_DESCRIPTION --- channels:list:maxResults
|
YouTube.Videos.List |
setMyRating(String myRating)
Set this parameter's value to like or dislike to instruct the API to only return videos liked
or disliked by the authenticated user.
|
YouTube.Videos.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.List |
setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on
behalf of the content owner specified in the parameter value.
|
YouTube.Videos.List |
setPageToken(String pageToken)
USE_DESCRIPTION --- channels:list:pageToken
|
YouTube.Videos.List |
setPart(String part)
The part parameter specifies a comma-separated list of one or more video resource properties
that the API response will include.
|
YouTube.Videos.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Videos.List |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected YouTube.Videos.List(String part)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. YouTube.initialize(AbstractGoogleClientRequest)
must be called to initialize this instance
immediately after invoking the constructor.
part
- The part parameter specifies a comma-separated list of one or more video resource properties that
the API response will include. The part names that you can include in the parameter value
are id, snippet, contentDetails, player, statistics, status, and topicDetails.
If the
parameter identifies a property that contains child properties, the child properties will
be included in the response. For example, in a video resource, the snippet property
contains the channelId, title, description, tags, and categoryId properties. As such, if
you set part=snippet, the API response will contain all of those properties.public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<VideoListResponse>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<VideoListResponse>
IOException
public YouTube.Videos.List setAlt(String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<VideoListResponse>
public YouTube.Videos.List setFields(String fields)
YouTubeRequest
setFields
in class YouTubeRequest<VideoListResponse>
public YouTube.Videos.List setKey(String key)
YouTubeRequest
setKey
in class YouTubeRequest<VideoListResponse>
public YouTube.Videos.List setOauthToken(String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<VideoListResponse>
public YouTube.Videos.List setPrettyPrint(Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<VideoListResponse>
public YouTube.Videos.List setQuotaUser(String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<VideoListResponse>
public YouTube.Videos.List setUserIp(String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<VideoListResponse>
public String getPart()
public YouTube.Videos.List setPart(String part)
public String getOnBehalfOfContentOwner()
public YouTube.Videos.List setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
public Long getMaxResults()
public YouTube.Videos.List setMaxResults(Long maxResults)
public String getPageToken()
public YouTube.Videos.List setPageToken(String pageToken)
public String getMyRating()
public YouTube.Videos.List setMyRating(String myRating)
public String getId()
public YouTube.Videos.List setId(String id)