public class YouTube.Videos.GetRating extends YouTubeRequest<VideoGetRatingResponse>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Videos.GetRating(java.lang.String id)
Retrieves the ratings that the authorized user gave to a list of specified videos.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getId()
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s)
for which you are retrieving rating data.
|
java.lang.String |
getOnBehalfOfContentOwner()
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Videos.GetRating |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Videos.GetRating |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Videos.GetRating |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.GetRating |
setId(java.lang.String id)
The id parameter specifies a comma-separated list of the YouTube video ID(s) for the
resource(s) for which you are retrieving rating data.
|
YouTube.Videos.GetRating |
setKey(java.lang.String key)
API key.
|
YouTube.Videos.GetRating |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.GetRating |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Videos.GetRating |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.GetRating |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Videos.GetRating |
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.Videos.GetRating(java.lang.String id)
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.
id
- The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) for
which you are retrieving rating data. In a video resource, the id property specifies the
video's ID.public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<VideoGetRatingResponse>
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<VideoGetRatingResponse>
java.io.IOException
public YouTube.Videos.GetRating setAlt(java.lang.String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<VideoGetRatingResponse>
public YouTube.Videos.GetRating setFields(java.lang.String fields)
YouTubeRequest
setFields
in class YouTubeRequest<VideoGetRatingResponse>
public YouTube.Videos.GetRating setKey(java.lang.String key)
YouTubeRequest
setKey
in class YouTubeRequest<VideoGetRatingResponse>
public YouTube.Videos.GetRating setOauthToken(java.lang.String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<VideoGetRatingResponse>
public YouTube.Videos.GetRating setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<VideoGetRatingResponse>
public YouTube.Videos.GetRating setQuotaUser(java.lang.String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<VideoGetRatingResponse>
public YouTube.Videos.GetRating setUserIp(java.lang.String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<VideoGetRatingResponse>
public java.lang.String getId()
public YouTube.Videos.GetRating setId(java.lang.String id)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Videos.GetRating setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public YouTube.Videos.GetRating set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeRequest<VideoGetRatingResponse>