public class Games.Scores.Get extends GamesRequest<PlayerLeaderboardScoreListResponse>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Get(String playerId,
String leaderboardId,
String timeSpan)
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getIncludeRankType()
The types of ranks to return.
|
String |
getLanguage()
The preferred language to use for strings returned by this method.
|
String |
getLeaderboardId()
The ID of the leaderboard.
|
Integer |
getMaxResults()
The maximum number of leaderboard scores to return in the response.
|
String |
getPageToken()
The token returned by the previous request.
|
String |
getPlayerId()
A player ID.
|
String |
getTimeSpan()
The time span for the scores and ranks you're requesting.
|
Games.Scores.Get |
set(String parameterName,
Object value) |
Games.Scores.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
Games.Scores.Get |
setAccessToken(String accessToken)
OAuth access token.
|
Games.Scores.Get |
setAlt(String alt)
Data format for response.
|
Games.Scores.Get |
setCallback(String callback)
JSONP
|
Games.Scores.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Games.Scores.Get |
setIncludeRankType(String includeRankType)
The types of ranks to return.
|
Games.Scores.Get |
setKey(String key)
API key.
|
Games.Scores.Get |
setLanguage(String language)
The preferred language to use for strings returned by this method.
|
Games.Scores.Get |
setLeaderboardId(String leaderboardId)
The ID of the leaderboard.
|
Games.Scores.Get |
setMaxResults(Integer maxResults)
The maximum number of leaderboard scores to return in the response.
|
Games.Scores.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Games.Scores.Get |
setPageToken(String pageToken)
The token returned by the previous request.
|
Games.Scores.Get |
setPlayerId(String playerId)
A player ID.
|
Games.Scores.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Games.Scores.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Games.Scores.Get |
setTimeSpan(String timeSpan)
The time span for the scores and ranks you're requesting.
|
Games.Scores.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Games.Scores.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, 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 Get(String playerId, String leaderboardId, String timeSpan)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Games.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
playerId - A player ID. A value of `me` may be used in place of the authenticated player's ID.leaderboardId - The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this
application.timeSpan - The time span for the scores and ranks you're requesting.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<PlayerLeaderboardScoreListResponse>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<PlayerLeaderboardScoreListResponse>IOExceptionpublic Games.Scores.Get set$Xgafv(String $Xgafv)
GamesRequestset$Xgafv in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setAccessToken(String accessToken)
GamesRequestsetAccessToken in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setAlt(String alt)
GamesRequestsetAlt in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setCallback(String callback)
GamesRequestsetCallback in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setFields(String fields)
GamesRequestsetFields in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setKey(String key)
GamesRequestsetKey in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setOauthToken(String oauthToken)
GamesRequestsetOauthToken in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setPrettyPrint(Boolean prettyPrint)
GamesRequestsetPrettyPrint in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setQuotaUser(String quotaUser)
GamesRequestsetQuotaUser in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setUploadType(String uploadType)
GamesRequestsetUploadType in class GamesRequest<PlayerLeaderboardScoreListResponse>public Games.Scores.Get setUploadProtocol(String uploadProtocol)
GamesRequestsetUploadProtocol in class GamesRequest<PlayerLeaderboardScoreListResponse>public String getPlayerId()
public Games.Scores.Get setPlayerId(String playerId)
public String getLeaderboardId()
public Games.Scores.Get setLeaderboardId(String leaderboardId)
public String getTimeSpan()
public Games.Scores.Get setTimeSpan(String timeSpan)
public String getIncludeRankType()
public Games.Scores.Get setIncludeRankType(String includeRankType)
public String getLanguage()
public Games.Scores.Get setLanguage(String language)
public Integer getMaxResults()
public Games.Scores.Get setMaxResults(Integer maxResults)
public String getPageToken()
public Games.Scores.Get setPageToken(String pageToken)
public Games.Scores.Get set(String parameterName, Object value)
set in class GamesRequest<PlayerLeaderboardScoreListResponse>Copyright © 2011–2025 Google. All rights reserved.