UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 157 kB
{"openapi":"3.0.0","info":{"contact":{"name":"Google","url":"https://google.com"},"description":"The API for Google Play Game Services.","title":"Google Play Game Services","version":"v1","x-apiClientRegistration":{"url":"https://console.developers.google.com"},"x-apisguru-categories":["social"],"x-logo":{"url":"https://www.gstatic.com/images/icons/material/product/2x/play_games_64dp.png"},"x-origin":[{"converter":{"url":"https://github.com/lucybot/api-spec-converter","version":"2.7.18"},"format":"google","url":"https://www.googleapis.com/discovery/v1/apis/games/v1/rest","version":"v1"}],"x-preferred":true,"x-providerName":"googleapis.com","x-serviceName":"games"},"externalDocs":{"url":"https://developers.google.com/games/services/"},"tags":[{"name":"achievementDefinitions"},{"name":"achievements"},{"name":"applications"},{"name":"events"},{"name":"leaderboards"},{"name":"metagame"},{"name":"players"},{"name":"pushtokens"},{"name":"questMilestones"},{"name":"quests"},{"name":"revisions"},{"name":"rooms"},{"name":"scores"},{"name":"snapshots"},{"name":"turnBasedMatches"}],"paths":{"/achievements":{"get":{"description":"Lists all the achievement definitions for your application.","operationId":"games.achievementDefinitions.list","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":200}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AchievementDefinitionsListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievementDefinitions"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/achievements/updateMultiple":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Updates multiple achievements for the currently authenticated player.","operationId":"games.achievements.updateMultiple","parameters":[{"description":"Override used only by built-in games in Play Games application.","in":"query","name":"builtinGameId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AchievementUpdateMultipleRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AchievementUpdateMultipleResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievements"]}},"/achievements/{achievementId}/increment":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Increments the steps of the achievement with the given ID for the currently authenticated player.","operationId":"games.achievements.increment","parameters":[{"description":"The ID of the achievement used by this method.","in":"path","name":"achievementId","required":true,"schema":{"type":"string"}},{"description":"A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.","in":"query","name":"requestId","schema":{"type":"string"}},{"description":"The number of steps to increment.","in":"query","name":"stepsToIncrement","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AchievementIncrementResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievements"]}},"/achievements/{achievementId}/reveal":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.","operationId":"games.achievements.reveal","parameters":[{"description":"The ID of the achievement used by this method.","in":"path","name":"achievementId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AchievementRevealResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievements"]}},"/achievements/{achievementId}/setStepsAtLeast":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.","operationId":"games.achievements.setStepsAtLeast","parameters":[{"description":"The ID of the achievement used by this method.","in":"path","name":"achievementId","required":true,"schema":{"type":"string"}},{"description":"The minimum value to set the steps to.","in":"query","name":"steps","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AchievementSetStepsAtLeastResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievements"]}},"/achievements/{achievementId}/unlock":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Unlocks this achievement for the currently authenticated player.","operationId":"games.achievements.unlock","parameters":[{"description":"The ID of the achievement used by this method.","in":"path","name":"achievementId","required":true,"schema":{"type":"string"}},{"description":"Override used only by built-in games in Play Games application.","in":"query","name":"builtinGameId","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AchievementUnlockResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievements"]}},"/applications/played":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Indicate that the the currently authenticated user is playing your application.","operationId":"games.applications.played","parameters":[{"description":"Override used only by built-in games in Play Games application.","in":"query","name":"builtinGameId","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["applications"]}},"/applications/{applicationId}":{"get":{"description":"Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified platformType, the returned response will not include any instance data.","operationId":"games.applications.get","parameters":[{"description":"The application ID from the Google Play developer console.","in":"path","name":"applicationId","required":true,"schema":{"type":"string"}},{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"Restrict application details returned to the specific platform.","in":"query","name":"platformType","schema":{"type":"string","enum":["ANDROID","IOS","WEB_APP"]}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Application"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["applications"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/applications/{applicationId}/verify":{"get":{"description":"Verifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.","operationId":"games.applications.verify","parameters":[{"description":"The application ID from the Google Play developer console.","in":"path","name":"applicationId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApplicationVerifyResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["applications"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/eventDefinitions":{"get":{"description":"Returns a list of the event definitions in this application.","operationId":"games.events.listDefinitions","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of event definitions to return in the response, used for paging. For any response, the actual number of event definitions to return may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":100}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EventDefinitionListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["events"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/events":{"get":{"description":"Returns a list showing the current progress on events in this application for the currently authenticated user.","operationId":"games.events.listByPlayer","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of events to return in the response, used for paging. For any response, the actual number of events to return may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":100}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlayerEventListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["events"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Records a batch of changes to the number of times events have occurred for the currently authenticated user of this application.","operationId":"games.events.record","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRecordRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EventUpdateResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["events"]}},"/leaderboards":{"get":{"description":"Lists all the leaderboard metadata for your application.","operationId":"games.leaderboards.list","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of leaderboards to return in the response. For any response, the actual number of leaderboards returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":200}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LeaderboardListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["leaderboards"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/leaderboards/scores":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Submits multiple scores to leaderboards.","operationId":"games.scores.submitMultiple","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerScoreSubmissionList"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlayerScoreListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["scores"]}},"/leaderboards/{leaderboardId}":{"get":{"description":"Retrieves the metadata of the leaderboard with the given ID.","operationId":"games.leaderboards.get","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the leaderboard.","in":"path","name":"leaderboardId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Leaderboard"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["leaderboards"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/leaderboards/{leaderboardId}/scores":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Submits a score to the specified leaderboard.","operationId":"games.scores.submit","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the leaderboard.","in":"path","name":"leaderboardId","required":true,"schema":{"type":"string"}},{"description":"The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.","in":"query","name":"score","required":true,"schema":{"type":"string"}},{"description":"Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.","in":"query","name":"scoreTag","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlayerScoreResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["scores"]}},"/leaderboards/{leaderboardId}/scores/{collection}":{"get":{"description":"Lists the scores in a leaderboard, starting from the top.","operationId":"games.scores.list","parameters":[{"description":"The collection of scores you're requesting.","in":"path","name":"collection","required":true,"schema":{"type":"string","enum":["PUBLIC","SOCIAL","SOCIAL_1P"]}},{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the leaderboard.","in":"path","name":"leaderboardId","required":true,"schema":{"type":"string"}},{"description":"The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":30}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"The time span for the scores and ranks you're requesting.","in":"query","name":"timeSpan","required":true,"schema":{"type":"string","enum":["ALL_TIME","DAILY","WEEKLY"]}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LeaderboardScores"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["scores"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/leaderboards/{leaderboardId}/window/{collection}":{"get":{"description":"Lists the scores in a leaderboard around (and including) a player's score.","operationId":"games.scores.listWindow","parameters":[{"description":"The collection of scores you're requesting.","in":"path","name":"collection","required":true,"schema":{"type":"string","enum":["PUBLIC","SOCIAL","SOCIAL_1P"]}},{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the leaderboard.","in":"path","name":"leaderboardId","required":true,"schema":{"type":"string"}},{"description":"The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":30}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults.","in":"query","name":"resultsAbove","schema":{"type":"integer"}},{"description":"True if the top scores should be returned when the player is not in the leaderboard. Defaults to true.","in":"query","name":"returnTopIfAbsent","schema":{"type":"boolean"}},{"description":"The time span for the scores and ranks you're requesting.","in":"query","name":"timeSpan","required":true,"schema":{"type":"string","enum":["ALL_TIME","DAILY","WEEKLY"]}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LeaderboardScores"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["scores"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/metagameConfig":{"get":{"description":"Return the metagame configuration data for the calling application.","operationId":"games.metagame.getMetagameConfig","responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetagameConfig"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["metagame"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/me/players/{collection}":{"get":{"description":"Get the collection of players for the currently authenticated user.","operationId":"games.players.list","parameters":[{"description":"Collection of players being retrieved","in":"path","name":"collection","required":true,"schema":{"type":"string","enum":["connected","playedWith","played_with","visible"]}},{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":50}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlayerListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["players"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/{playerId}":{"get":{"description":"Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.","operationId":"games.players.get","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"A player ID. A value of me may be used in place of the authenticated player's ID.","in":"path","name":"playerId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Player"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["players"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/{playerId}/achievements":{"get":{"description":"Lists the progress for all your application's achievements for the currently authenticated player.","operationId":"games.achievements.list","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":200}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"A player ID. A value of me may be used in place of the authenticated player's ID.","in":"path","name":"playerId","required":true,"schema":{"type":"string"}},{"description":"Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned.","in":"query","name":"state","schema":{"type":"string","enum":["ALL","HIDDEN","REVEALED","UNLOCKED"]}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlayerAchievementListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["achievements"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/{playerId}/categories/{collection}":{"get":{"description":"List play data aggregated per category for the player corresponding to playerId.","operationId":"games.metagame.listCategoriesByPlayer","parameters":[{"description":"The collection of categories for which data will be returned.","in":"path","name":"collection","required":true,"schema":{"type":"string","enum":["all"]}},{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of category resources to return in the response, used for paging. For any response, the actual number of category resources returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":100}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"A player ID. A value of me may be used in place of the authenticated player's ID.","in":"path","name":"playerId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CategoryListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["metagame"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}":{"get":{"description":"Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span.\nNOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; only one parameter may be set to 'ALL'.","operationId":"games.scores.get","parameters":[{"description":"The types of ranks to return. If the parameter is omitted, no ranks will be returned.","in":"query","name":"includeRankType","schema":{"type":"string","enum":["ALL","PUBLIC","SOCIAL"]}},{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application.","in":"path","name":"leaderboardId","required":true,"schema":{"type":"string"}},{"description":"The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":30}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"A player ID. A value of me may be used in place of the authenticated player's ID.","in":"path","name":"playerId","required":true,"schema":{"type":"string"}},{"description":"The time span for the scores and ranks you're requesting.","in":"path","name":"timeSpan","required":true,"schema":{"type":"string","enum":["ALL","ALL_TIME","DAILY","WEEKLY"]}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PlayerLeaderboardScoreListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["scores"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/{playerId}/quests":{"get":{"description":"Get a list of quests for your application and the currently authenticated player.","operationId":"games.quests.list","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of quest resources to return in the response, used for paging. For any response, the actual number of quest resources returned may be less than the specified maxResults. Acceptable values are 1 to 50, inclusive. (Default: 50).","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":50}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"A player ID. A value of me may be used in place of the authenticated player's ID.","in":"path","name":"playerId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/QuestListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["quests"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/players/{playerId}/snapshots":{"get":{"description":"Retrieves a list of snapshots created by your application for the player corresponding to the player ID.","operationId":"games.snapshots.list","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of snapshot resources to return in the response, used for paging. For any response, the actual number of snapshot resources returned may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":25}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}},{"description":"A player ID. A value of me may be used in place of the authenticated player's ID.","in":"path","name":"playerId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SnapshotListResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/drive.appdata"]},{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["snapshots"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/pushtokens":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"put":{"description":"Registers a push token for the current user and application.","operationId":"games.pushtokens.update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToken"}}}},"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["pushtokens"]}},"/pushtokens/remove":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Removes a push token for the current user and application. Removing a non-existent push token will report success.","operationId":"games.pushtokens.remove","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushTokenId"}}}},"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["pushtokens"]}},"/quests/{questId}/accept":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Indicates that the currently authorized user will participate in the quest.","operationId":"games.quests.accept","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the quest.","in":"path","name":"questId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Quest"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["quests"]}},"/quests/{questId}/milestones/{milestoneId}/claim":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"put":{"description":"Report that a reward for the milestone corresponding to milestoneId for the quest corresponding to questId has been claimed by the currently authorized user.","operationId":"games.questMilestones.claim","parameters":[{"description":"The ID of the milestone.","in":"path","name":"milestoneId","required":true,"schema":{"type":"string"}},{"description":"The ID of the quest.","in":"path","name":"questId","required":true,"schema":{"type":"string"}},{"description":"A numeric ID to ensure that the request is handled correctly across retries. Your client application must generate this ID randomly.","in":"query","name":"requestId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["questMilestones"]}},"/revisions/check":{"get":{"description":"Checks whether the games client is out of date.","operationId":"games.revisions.check","parameters":[{"description":"The revision of the client SDK used by your application. Format:\n[PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:\n \n- \"ANDROID\" - Client is running the Android SDK. \n- \"IOS\" - Client is running the iOS SDK. \n- \"WEB_APP\" - Client is running as a Web App.","in":"query","name":"clientRevision","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RevisionCheckResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["revisions"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/rooms":{"get":{"description":"Returns invitations to join rooms.","operationId":"games.rooms.list","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The maximum number of rooms to return in the response, used for paging. For any response, the actual number of rooms to return may be less than the specified maxResults.","in":"query","name":"maxResults","schema":{"type":"integer","minimum":1,"maximum":500}},{"description":"The token returned by the previous request.","in":"query","name":"pageToken","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RoomList"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/rooms/create":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.","operationId":"games.rooms.create","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomCreateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Room"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]}},"/rooms/{roomId}":{"get":{"description":"Get the data for a room.","operationId":"games.rooms.get","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the room.","in":"path","name":"roomId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Room"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]},"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}]},"/rooms/{roomId}/decline":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.","operationId":"games.rooms.decline","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the room.","in":"path","name":"roomId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Room"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]}},"/rooms/{roomId}/dismiss":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.","operationId":"games.rooms.dismiss","parameters":[{"description":"The ID of the room.","in":"path","name":"roomId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]}},"/rooms/{roomId}/join":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.","operationId":"games.rooms.join","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the room.","in":"path","name":"roomId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomJoinRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Room"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]}},"/rooms/{roomId}/leave":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.","operationId":"games.rooms.leave","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the room.","in":"path","name":"roomId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomLeaveRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Room"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/games"]},{"Oauth2":["https://www.googleapis.com/auth/plus.me"]}],"tags":["rooms"]}},"/rooms/{roomId}/reportstatus":{"parameters":[{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/userIp"}],"post":{"description":"Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.","operationId":"games.rooms.reportStatus","parameters":[{"description":"The preferred language to use for strings returned by this method.","in":"query","name":"language","schema":{"type":"string"}},{"description":"The ID of the room.","in":"path","name":"roomId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomP2PStatuses"}}}},"responses"