Method: accesstokens.generatePlayGroupingApiToken
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Ekteki kimlik bilgisiyle tanımlanan PGS kullanıcısı için bir Play Grouping API jetonu oluşturur.
HTTP isteği
POST https://games.googleapis.com/games/v1/accesstokens/generatePlayGroupingApiToken
Sorgu parametreleri
Parametreler |
packageName |
string
Zorunlu. Jetonu oluşturulacak uygulama paketi adı (ör. com.example.mygame).
|
persona |
string
Zorunlu. Jetonla ilişkilendirilecek karakter. Karakter, kullanıcıya geliştirici tarafından sağlanan kararlı bir tanımlayıcıdır. Geliştiricinin kendi kullanıcı kimliği sistemine göre, kullanıcı hesabı kimliğinden ve kullanıcı profili kimliğinden (kavram varsa uygulamada) belirleyici bir şekilde oluşturulmalıdır (ör. tek yönlü karma olarak).
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
accesstokens.generatePlayGroupingApiToken RPC yanıtı.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Alanlar |
token |
object (PlayGroupingApiToken )
Play Grouping API'ye erişmek için kullanılan jeton.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Daha fazla bilgi için OAuth 2.0 Overview (OAuth 2.0'a Genel Bakış) sayfasına göz atın.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Method: accesstokens.generatePlayGroupingApiToken\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.GeneratePlayGroupingApiTokenResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGenerates a Play Grouping API token for the PGS user identified by the attached credential.\n\n### HTTP request\n\n`POST https://games.googleapis.com/games/v1/accesstokens/generatePlayGroupingApiToken`\n\n### Query parameters\n\n| Parameters ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Required. App package name to generate the token for (e.g. com.example.mygame). |\n| `persona` | `string` Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer's own user identity system. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for the accesstokens.generatePlayGroupingApiToken RPC.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"token\": { object (/games/services/web/api/rest/v1/PlayGroupingApiToken) } } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `token` | `object (`[PlayGroupingApiToken](/games/services/web/api/rest/v1/PlayGroupingApiToken)`)` Token for accessing the Play Grouping API. |\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)."]]