public class YouTube.Videos.List extends YouTubeRequest<VideoListResponse>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
YouTube.Videos.List(java.lang.String part)
Returns a list of videos that match the API request parameters.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getChart()
The chart parameter identifies the chart that you want to retrieve.
|
java.lang.String |
getHl()
The hl parameter instructs the API to retrieve localized resource metadata for a specific
application language that the YouTube website supports.
|
java.lang.String |
getId()
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s)
that are being retrieved.
|
java.lang.String |
getLocale()
DEPRECATED
|
java.lang.Long |
getMaxResults()
The maxResults parameter specifies the maximum number of items that should be returned in the
result set.
|
java.lang.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.
|
java.lang.String |
getOnBehalfOfContentOwner()
Note: This parameter is intended exclusively for YouTube content partners.
|
java.lang.String |
getPageToken()
The pageToken parameter identifies a specific page in the result set that should be returned.
|
java.lang.String |
getPart()
The part parameter specifies a comma-separated list of one or more video resource properties that
the API response will include.
|
java.lang.String |
getRegionCode()
The regionCode parameter instructs the API to select a video chart available in the specified
region.
|
java.lang.String |
getVideoCategoryId()
The videoCategoryId parameter identifies the video category for which the chart should be
retrieved.
|
YouTube.Videos.List |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Videos.List |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Videos.List |
setChart(java.lang.String chart)
The chart parameter identifies the chart that you want to retrieve.
|
YouTube.Videos.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.List |
setHl(java.lang.String hl)
The hl parameter instructs the API to retrieve localized resource metadata for a specific
application language that the YouTube website supports.
|
YouTube.Videos.List |
setId(java.lang.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(java.lang.String key)
API key.
|
YouTube.Videos.List |
setLocale(java.lang.String locale)
DEPRECATED
|
YouTube.Videos.List |
setMaxResults(java.lang.Long maxResults)
The maxResults parameter specifies the maximum number of items that should be returned in
the result set.
|
YouTube.Videos.List |
setMyRating(java.lang.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(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.List |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Videos.List |
setPageToken(java.lang.String pageToken)
The pageToken parameter identifies a specific page in the result set that should be
returned.
|
YouTube.Videos.List |
setPart(java.lang.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(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.List |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Videos.List |
setRegionCode(java.lang.String regionCode)
The regionCode parameter instructs the API to select a video chart available in the
specified region.
|
YouTube.Videos.List |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
YouTube.Videos.List |
setVideoCategoryId(java.lang.String videoCategoryId)
The videoCategoryId parameter identifies the video category for which the chart should be
retrieved.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected YouTube.Videos.List(java.lang.String part)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. YouTube.initialize(com.google.api.client.googleapis.services.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.
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 com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<VideoListResponse>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<VideoListResponse>java.io.IOExceptionpublic YouTube.Videos.List setAlt(java.lang.String alt)
YouTubeRequestsetAlt in class YouTubeRequest<VideoListResponse>public YouTube.Videos.List setFields(java.lang.String fields)
YouTubeRequestsetFields in class YouTubeRequest<VideoListResponse>public YouTube.Videos.List setKey(java.lang.String key)
YouTubeRequestsetKey in class YouTubeRequest<VideoListResponse>public YouTube.Videos.List setOauthToken(java.lang.String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<VideoListResponse>public YouTube.Videos.List setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<VideoListResponse>public YouTube.Videos.List setQuotaUser(java.lang.String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<VideoListResponse>public YouTube.Videos.List setUserIp(java.lang.String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<VideoListResponse>public java.lang.String getPart()
public YouTube.Videos.List setPart(java.lang.String part)
public java.lang.String getChart()
public YouTube.Videos.List setChart(java.lang.String chart)
public java.lang.String getHl()
public YouTube.Videos.List setHl(java.lang.String hl)
public java.lang.String getId()
public YouTube.Videos.List setId(java.lang.String id)
public java.lang.String getLocale()
public YouTube.Videos.List setLocale(java.lang.String locale)
public java.lang.Long getMaxResults()
public YouTube.Videos.List setMaxResults(java.lang.Long maxResults)
public java.lang.String getMyRating()
public YouTube.Videos.List setMyRating(java.lang.String myRating)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Videos.List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public java.lang.String getPageToken()
public YouTube.Videos.List setPageToken(java.lang.String pageToken)
public java.lang.String getRegionCode()
public YouTube.Videos.List setRegionCode(java.lang.String regionCode)
public java.lang.String getVideoCategoryId()
public YouTube.Videos.List setVideoCategoryId(java.lang.String videoCategoryId)
public YouTube.Videos.List set(java.lang.String parameterName, java.lang.Object value)
set in class YouTubeRequest<VideoListResponse>