REST Resource: snapshots
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: स्नैपशॉट
JSON के काेड में दिखाना |
{
"id": string,
"driveId": string,
"kind": string,
"type": enum (SnapshotType ),
"title": string,
"description": string,
"lastModifiedMillis": string,
"durationMillis": string,
"coverImage": {
object (SnapshotImage )
},
"uniqueName": string,
"progressValue": string
} |
फ़ील्ड |
id |
string
स्नैपशॉट का आईडी.
|
driveId |
string
Drive API में इस स्नैपशॉट में मौजूद फ़ाइल का आईडी. यह तब ही दिखता है, जब स्नैपशॉट किसी Drive फ़ाइल के व्यू में हो और फ़ाइल का मालिकाना हक कॉलर के पास हो.
|
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#snapshot होती है.
|
type |
enum (SnapshotType )
इस स्नैपशॉट का टाइप.
|
title |
string
इस स्नैपशॉट का टाइटल.
|
description |
string
इस स्नैपशॉट का ब्यौरा.
|
lastModifiedMillis |
string (int64 format)
इस स्नैपशॉट में आखिरी बदलाव का टाइमस्टैंप (Unix epoch के बाद से मिली सेकंड में) लिया गया है.
|
durationMillis |
string (int64 format)
इस स्नैपशॉट से जुड़ी अवधि, मिलीसेकंड में.
|
coverImage |
object (SnapshotImage )
इस स्नैपशॉट की कवर इमेज. अगर कोई इमेज न हो, तो हो सकता है कि यह मौजूद न हो.
|
uniqueName |
string
स्नैपशॉट बनाए जाने के दौरान दिया गया यूनीक नाम.
|
progressValue |
string (int64 format)
इस स्नैपशॉट से जुड़ी प्रोग्रेस की वैल्यू (डेवलपर ने 64-बिट पूर्णांक सेट किया है).
|
SnapshotType
तय करें कि किस तरह के स्नैपशॉट इस्तेमाल किए जा सकते हैं.
Enums |
SAVE_GAME |
सेव किए गए गेम की जानकारी देने वाला स्नैपशॉट. |
SnapshotImage
JSON के काेड में दिखाना |
{
"width": integer,
"height": integer,
"mime_type": string,
"url": string,
"kind": string
} |
फ़ील्ड |
width |
integer
इमेज की चौड़ाई.
|
height |
integer
इमेज की ऊंचाई.
|
mime_type |
string
इमेज का MIME टाइप.
|
url |
string
इमेज का यूआरएल. यह यूआरएल कभी भी अमान्य हो सकता है. इसलिए, इसे कैश मेमोरी में सेव नहीं किया जाना चाहिए.
|
kind |
string
इस संसाधन के टाइप की अलग-अलग पहचान करता है. यह वैल्यू हमेशा तय की गई स्ट्रिंग games#snapshotImage होती है.
|
तरीके |
|
दिए गए स्नैपशॉट आईडी के लिए मेटाडेटा हासिल करता है. |
|
आपके ऐप्लिकेशन के प्लेयर आईडी से जुड़े प्लेयर के लिए बनाए गए स्नैपशॉट की सूची लाता है. |
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# REST Resource: snapshots\n\n- [Resource: Snapshot](#Snapshot)\n - [JSON representation](#Snapshot.SCHEMA_REPRESENTATION)\n- [SnapshotType](#SnapshotType)\n- [SnapshotImage](#SnapshotImage)\n - [JSON representation](#SnapshotImage.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Snapshot\n------------------\n\nAn snapshot object.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"driveId\": string, \"kind\": string, \"type\": enum (/games/services/web/api/rest/v1/snapshots#SnapshotType), \"title\": string, \"description\": string, \"lastModifiedMillis\": string, \"durationMillis\": string, \"coverImage\": { object (/games/services/web/api/rest/v1/snapshots#SnapshotImage) }, \"uniqueName\": string, \"progressValue\": string } ``` |\n\n| Fields ||\n|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The ID of the snapshot. |\n| `driveId` | `string` The ID of the file underlying this snapshot in the Drive API. Only present if the snapshot is a view on a Drive file and the file is owned by the caller. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#snapshot`. |\n| `type` | `enum (`[SnapshotType](/games/services/web/api/rest/v1/snapshots#SnapshotType)`)` The type of this snapshot. |\n| `title` | `string` The title of this snapshot. |\n| `description` | `string` The description of this snapshot. |\n| `lastModifiedMillis` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The timestamp (in millis since Unix epoch) of the last modification to this snapshot. |\n| `durationMillis` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The duration associated with this snapshot, in millis. |\n| `coverImage` | `object (`[SnapshotImage](/games/services/web/api/rest/v1/snapshots#SnapshotImage)`)` The cover image of this snapshot. May be absent if there is no image. |\n| `uniqueName` | `string` The unique name provided when the snapshot was created. |\n| `progressValue` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The progress value (64-bit integer set by developer) associated with this snapshot. |\n\nSnapshotType\n------------\n\nDefine supported snapshot types.\n\n| Enums ||\n|-------------|--------------------------------------|\n| `SAVE_GAME` | A snapshot representing a save game. |\n\nSnapshotImage\n-------------\n\nAn image of a snapshot.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------|\n| ``` { \"width\": integer, \"height\": integer, \"mime_type\": string, \"url\": string, \"kind\": string } ``` |\n\n| Fields ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| `width` | `integer` The width of the image. |\n| `height` | `integer` The height of the image. |\n| `mime_type` | `string` The MIME type of the image. |\n| `url` | `string` The URL of the image. This URL may be invalidated at any time and should not be cached. |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#snapshotImage`. |\n\n| Methods ------- ||\n|------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| ### [get](/games/services/web/api/rest/v1/snapshots/get) | Retrieves the metadata for a given snapshot ID. |\n| ### [list](/games/services/web/api/rest/v1/snapshots/list) | Retrieves a list of snapshots created by your application for the player corresponding to the player ID. |"]]