public class YouTube.Subscriptions.List extends YouTubeRequest<SubscriptionListResponse>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Subscriptions.List(java.lang.String part)
Returns subscription resources that match the API request criteria.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getChannelId()
The channelId parameter specifies a YouTube channel ID.
|
java.lang.String |
getForChannelId()
The forChannelId parameter specifies a comma-separated list of channel IDs.
|
java.lang.String |
getId()
The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the
resource(s) that are being retrieved.
|
java.lang.Long |
getMaxResults()
The maxResults parameter specifies the maximum number of items that should be returned in the
result set.
|
java.lang.Boolean |
getMine()
Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.
|
java.lang.Boolean |
getMySubscribers()
Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated user.
|
java.lang.String |
getOnBehalfOfContentOwner()
Note: This parameter is intended exclusively for YouTube content partners.
|
java.lang.String |
getOnBehalfOfContentOwnerChannel()
This parameter can only be used in a properly authorized request.
|
java.lang.String |
getOrder()
The order parameter specifies the method that will be used to sort resources in the API response.
|
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 subscription resource properties
that the API response will include.
|
YouTube.Subscriptions.List |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Subscriptions.List |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Subscriptions.List |
setChannelId(java.lang.String channelId)
The channelId parameter specifies a YouTube channel ID.
|
YouTube.Subscriptions.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Subscriptions.List |
setForChannelId(java.lang.String forChannelId)
The forChannelId parameter specifies a comma-separated list of channel IDs.
|
YouTube.Subscriptions.List |
setId(java.lang.String id)
The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the
resource(s) that are being retrieved.
|
YouTube.Subscriptions.List |
setKey(java.lang.String key)
API key.
|
YouTube.Subscriptions.List |
setMaxResults(java.lang.Long maxResults)
The maxResults parameter specifies the maximum number of items that should be returned in
the result set.
|
YouTube.Subscriptions.List |
setMine(java.lang.Boolean mine)
Set this parameter's value to true to retrieve a feed of the authenticated user's
subscriptions.
|
YouTube.Subscriptions.List |
setMySubscribers(java.lang.Boolean mySubscribers)
Set this parameter's value to true to retrieve a feed of the subscribers of the
authenticated user.
|
YouTube.Subscriptions.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Subscriptions.List |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Subscriptions.List |
setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel)
This parameter can only be used in a properly authorized request.
|
YouTube.Subscriptions.List |
setOrder(java.lang.String order)
The order parameter specifies the method that will be used to sort resources in the API
response.
|
YouTube.Subscriptions.List |
setPageToken(java.lang.String pageToken)
The pageToken parameter identifies a specific page in the result set that should be
returned.
|
YouTube.Subscriptions.List |
setPart(java.lang.String part)
The part parameter specifies a comma-separated list of one or more subscription resource
properties that the API response will include.
|
YouTube.Subscriptions.List |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Subscriptions.List |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Subscriptions.List |
setUserIp(java.lang.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, checkRequiredParameter, 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, setUnknownKeys
protected YouTube.Subscriptions.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 subscription 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
subscription resource, the snippet property contains other properties, such as a display
title for the subscription. If you set part=snippet, the API response will also contain
all of those nested properties.public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<SubscriptionListResponse>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<SubscriptionListResponse>
java.io.IOException
public YouTube.Subscriptions.List setAlt(java.lang.String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<SubscriptionListResponse>
public YouTube.Subscriptions.List setFields(java.lang.String fields)
YouTubeRequest
setFields
in class YouTubeRequest<SubscriptionListResponse>
public YouTube.Subscriptions.List setKey(java.lang.String key)
YouTubeRequest
setKey
in class YouTubeRequest<SubscriptionListResponse>
public YouTube.Subscriptions.List setOauthToken(java.lang.String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<SubscriptionListResponse>
public YouTube.Subscriptions.List setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<SubscriptionListResponse>
public YouTube.Subscriptions.List setQuotaUser(java.lang.String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<SubscriptionListResponse>
public YouTube.Subscriptions.List setUserIp(java.lang.String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<SubscriptionListResponse>
public java.lang.String getPart()
public YouTube.Subscriptions.List setPart(java.lang.String part)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Subscriptions.List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public java.lang.String getOnBehalfOfContentOwnerChannel()
public YouTube.Subscriptions.List setOnBehalfOfContentOwnerChannel(java.lang.String onBehalfOfContentOwnerChannel)
public java.lang.String getChannelId()
public YouTube.Subscriptions.List setChannelId(java.lang.String channelId)
public java.lang.Boolean getMine()
public YouTube.Subscriptions.List setMine(java.lang.Boolean mine)
public java.lang.Long getMaxResults()
public YouTube.Subscriptions.List setMaxResults(java.lang.Long maxResults)
public java.lang.String getForChannelId()
public YouTube.Subscriptions.List setForChannelId(java.lang.String forChannelId)
public java.lang.String getPageToken()
public YouTube.Subscriptions.List setPageToken(java.lang.String pageToken)
public java.lang.Boolean getMySubscribers()
public YouTube.Subscriptions.List setMySubscribers(java.lang.Boolean mySubscribers)
public java.lang.String getOrder()
public YouTube.Subscriptions.List setOrder(java.lang.String order)
public java.lang.String getId()
public YouTube.Subscriptions.List setId(java.lang.String id)
public YouTube.Subscriptions.List set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeRequest<SubscriptionListResponse>