Method: accesstokens.generateRecallPlayGroupingApiToken
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
PGS इस्तेमाल करने वाले व्यक्ति के लिए, अनुरोध में दिए गए Recall सेशन आईडी से Play Grouping API टोकन जनरेट करता है.
एचटीटीपी अनुरोध
POST https://games.googleapis.com/games/v1/accesstokens/generateRecallPlayGroupingApiToken
क्वेरी पैरामीटर
पैरामीटर |
packageName |
string
ज़रूरी है. ऐप्लिकेशन पैकेज का नाम, जिसके लिए टोकन जनरेट करना है (उदाहरण के लिए, com.example.mygame).
|
persona |
string
ज़रूरी है. टोकन के साथ जोड़ने के लिए पर्सोना. पर्सोना, उपयोगकर्ता का ऐसा स्थायी आइडेंटिफ़ायर है जिसे डेवलपर ने उपलब्ध कराया है. यह ज़रूरी है कि डेवलपर के यूज़र आइडेंटिटी सिस्टम के हिसाब से, यह यूज़र खाता आईडी और यूज़र प्रोफ़ाइल आईडी (अगर ऐप्लिकेशन में कॉन्सेप्ट हो) से साफ़ तौर पर जनरेट होता है. जैसे, एकतरफ़ा हैश के तौर पर.
|
recallSessionId |
string
ज़रूरी है. ओपेक सर्वर से जनरेट की गई स्ट्रिंग, जो PGS प्लेयर / Google उपयोगकर्ता और ऐप्लिकेशन की पहचान करने के लिए सभी ज़रूरी जानकारी को कोड में बदलती है. Recall के साथ इंटिग्रेट करने और सेशन आईडी पाने का तरीका जानने के लिए, https://developer.android.com/games/pgs/recall/recall-setup देखें.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
accesstokens.generateRecallPlayGroupingApiToken RPC के लिए रिस्पॉन्स.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
फ़ील्ड |
token |
object (PlayGroupingApiToken )
Play Grouping API को ऐक्सेस करने के लिए टोकन.
|
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidpublisher
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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)."]]