public class YouTube.Activities.List extends YouTubeRequest<ActivityListResponse>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
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.
|
Boolean |
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()
The maxResults parameter specifies the maximum number of items that should be returned in the
result set.
|
Boolean |
getMine()
Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
|
String |
getPageToken()
The pageToken parameter identifies a specific page in the result set that should be returned.
|
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(Boolean 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)
The maxResults parameter specifies the maximum number of items that should be returned in
the result set.
|
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)
The pageToken parameter identifies a specific page in the result set that should be
returned.
|
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)
An opaque string that represents a user for quota purposes.
|
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)
Deprecated.
|
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, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected 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.
If the parameter identifies a property that contains child
properties, the child properties will be included in the response. For example, in an
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>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<ActivityListResponse>IOExceptionpublic YouTube.Activities.List setAlt(String alt)
YouTubeRequestsetAlt in class YouTubeRequest<ActivityListResponse>public YouTube.Activities.List setFields(String fields)
YouTubeRequestsetFields in class YouTubeRequest<ActivityListResponse>public YouTube.Activities.List setKey(String key)
YouTubeRequestsetKey in class YouTubeRequest<ActivityListResponse>public YouTube.Activities.List setOauthToken(String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<ActivityListResponse>public YouTube.Activities.List setPrettyPrint(Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<ActivityListResponse>public YouTube.Activities.List setQuotaUser(String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<ActivityListResponse>public YouTube.Activities.List setUserIp(String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<ActivityListResponse>public String getPart()
public YouTube.Activities.List setPart(String part)
public String getChannelId()
public YouTube.Activities.List setChannelId(String channelId)
public Boolean getHome()
public YouTube.Activities.List setHome(Boolean home)
public Long getMaxResults()
public YouTube.Activities.List setMaxResults(Long maxResults)
public Boolean getMine()
public YouTube.Activities.List setMine(Boolean mine)
public String getPageToken()
public YouTube.Activities.List setPageToken(String pageToken)
public DateTime getPublishedAfter()
public YouTube.Activities.List setPublishedAfter(DateTime publishedAfter)
public DateTime getPublishedBefore()
public YouTube.Activities.List setPublishedBefore(DateTime publishedBefore)
public String getRegionCode()
public YouTube.Activities.List setRegionCode(String regionCode)
public YouTube.Activities.List set(String parameterName, Object value)
set in class YouTubeRequest<ActivityListResponse>Copyright © 2011–2019 Google. All rights reserved.