Method: metagame.getMetagameConfig
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Method: metagame.getMetagameConfig\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.MetagameConfig.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturn the metagame configuration data for the calling application.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/metagameConfig`\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe metagame config resource\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"currentVersion\": integer, \"playerLevels\": [ { object (/games/services/web/api/rest/v1/players#Player.PlayerLevel) } ], \"kind\": string } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `currentVersion` | `integer` Current version of the metagame configuration data. When this data is updated, the version number will be increased by one. |\n| `playerLevels[]` | `object (`[PlayerLevel](/games/services/web/api/rest/v1/players#Player.PlayerLevel)`)` The list of player levels. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#metagameConfig`. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]