public class YouTube.Activities.List extends YouTubeRequest<ActivityListResponse>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Activities.List(String part)
Returns a list of channel activity events that match the request criteria.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getChannelId()
The channelId parameter specifies a unique YouTube channel ID.
|
String |
getHome()
Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home
page for the currently authenticated user.
|
Long |
getMaxResults()
USE_DESCRIPTION --- channels:list:maxResults [default: 5] [minimum: 0] [maximum: 50]
|
Boolean |
getMine()
Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
|
String |
getPageToken()
USE_DESCRIPTION --- channels:list:pageToken
|
String |
getPart()
The part parameter specifies a comma-separated list of one or more activity resource properties
that the API response will include.
|
DateTime |
getPublishedAfter()
The publishedAfter parameter specifies the earliest date and time that an activity could have
occurred for that activity to be included in the API response.
|
DateTime |
getPublishedBefore()
The publishedBefore parameter specifies the date and time before which an activity must have
occurred for that activity to be included in the API response.
|
String |
getRegionCode()
The regionCode parameter instructs the API to return results for the specified country.
|
YouTube.Activities.List |
set(String parameterName,
Object value) |
YouTube.Activities.List |
setAlt(String alt)
Data format for the response.
|
YouTube.Activities.List |
setChannelId(String channelId)
The channelId parameter specifies a unique YouTube channel ID.
|
YouTube.Activities.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Activities.List |
setHome(String home)
Set this parameter's value to true to retrieve the activity feed that displays on the
YouTube home page for the currently authenticated user.
|
YouTube.Activities.List |
setKey(String key)
API key.
|
YouTube.Activities.List |
setMaxResults(Long maxResults)
USE_DESCRIPTION --- channels:list:maxResults
|
YouTube.Activities.List |
setMine(Boolean mine)
Set this parameter's value to true to retrieve a feed of the authenticated user's
activities.
|
YouTube.Activities.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Activities.List |
setPageToken(String pageToken)
USE_DESCRIPTION --- channels:list:pageToken
|
YouTube.Activities.List |
setPart(String part)
The part parameter specifies a comma-separated list of one or more activity resource
properties that the API response will include.
|
YouTube.Activities.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Activities.List |
setPublishedAfter(DateTime publishedAfter)
The publishedAfter parameter specifies the earliest date and time that an activity could
have occurred for that activity to be included in the API response.
|
YouTube.Activities.List |
setPublishedBefore(DateTime publishedBefore)
The publishedBefore parameter specifies the date and time before which an activity must
have occurred for that activity to be included in the API response.
|
YouTube.Activities.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Activities.List |
setRegionCode(String regionCode)
The regionCode parameter instructs the API to return results for the specified country.
|
YouTube.Activities.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, 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
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected YouTube.Activities.List(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 activity resource properties that
the API response will include. The part names that you can include in the parameter value
are id, snippet, and contentDetails.
If the parameter identifies a property that contains
child properties, the child properties will be included in the response. For example, in a
activity resource, the snippet property contains other properties that identify the type
of activity, a display title for the activity, and so forth. If you set part=snippet, the
API response will also contain all of those nested properties.public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<ActivityListResponse>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<ActivityListResponse>
IOException
public YouTube.Activities.List setAlt(String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<ActivityListResponse>
public YouTube.Activities.List setFields(String fields)
YouTubeRequest
setFields
in class YouTubeRequest<ActivityListResponse>
public YouTube.Activities.List setKey(String key)
YouTubeRequest
setKey
in class YouTubeRequest<ActivityListResponse>
public YouTube.Activities.List setOauthToken(String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<ActivityListResponse>
public YouTube.Activities.List setPrettyPrint(Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<ActivityListResponse>
public YouTube.Activities.List setQuotaUser(String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<ActivityListResponse>
public YouTube.Activities.List setUserIp(String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<ActivityListResponse>
public String getPart()
public YouTube.Activities.List setPart(String part)
public String getRegionCode()
public YouTube.Activities.List setRegionCode(String regionCode)
public DateTime getPublishedBefore()
public YouTube.Activities.List setPublishedBefore(DateTime publishedBefore)
public String getChannelId()
public YouTube.Activities.List setChannelId(String channelId)
public Boolean getMine()
public YouTube.Activities.List setMine(Boolean mine)
public Long getMaxResults()
public YouTube.Activities.List setMaxResults(Long maxResults)
public String getPageToken()
public YouTube.Activities.List setPageToken(String pageToken)
public String getHome()
public YouTube.Activities.List setHome(String home)
public DateTime getPublishedAfter()
public YouTube.Activities.List setPublishedAfter(DateTime publishedAfter)
public YouTube.Activities.List set(String parameterName, Object value)
set
in class YouTubeRequest<ActivityListResponse>