Method: accesstokens.generateRecallPlayGroupingApiToken
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
İstekte sağlanan Recall oturum kimliğiyle 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/generateRecallPlayGroupingApiToken
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).
|
recallSessionId |
string
Zorunlu. PGS oynatıcısını / Google kullanıcısını ve uygulamasını tanımlamak için gerekli tüm bilgileri kodlayan, sunucu tarafından oluşturulmuş opak dize. Recall ile nasıl entegrasyon ve oturum kimliği alma hakkında bilgi edinmek için https://developer.android.com/games/pgs/recall/recall-setup adresini ziyaret edin.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
accesstokens.generateRecallPlayGroupingApiToken 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 kapsamını gerektirir:
https://www.googleapis.com/auth/androidpublisher
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.generateRecallPlayGroupingApiToken\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.GenerateRecallPlayGroupingApiTokenResponse.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 Recall session ID provided in the request.\n\n### HTTP request\n\n`POST https://games.googleapis.com/games/v1/accesstokens/generateRecallPlayGroupingApiToken`\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| `recallSessionId` | `string` Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application. See \u003chttps://developer.android.com/games/pgs/recall/recall-setup\u003e on how to integrate with Recall and get session ID. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for the accesstokens.generateRecallPlayGroupingApiToken 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 the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]