Method: presentations.pages.getThumbnail
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, प्रज़ेंटेशन में दिए गए पेज के नए वर्शन का थंबनेल जनरेट करता है. साथ ही, थंबनेल इमेज का यूआरएल दिखाता है.
कोटा के लिए, इस अनुरोध को महंगे ईमेल पढ़ने का अनुरोध माना जाता है.
एचटीटीपी अनुरोध
GET https://slides.googleapis.com/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
presentationId |
string
जिस प्रज़ेंटेशन को वापस लाना है उसका आईडी.
|
pageObjectId |
string
उस पेज का ऑब्जेक्ट आईडी जिसका थंबनेल वापस पाना है.
|
क्वेरी पैरामीटर
पैरामीटर |
thumbnailProperties |
object (ThumbnailProperties )
थंबनेल की प्रॉपर्टी.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
किसी पेज का थंबनेल.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"width": integer,
"height": integer,
"contentUrl": string
} |
फ़ील्ड |
width |
integer
थंबनेल इमेज की चौड़ाई, पिक्सल में.
|
height |
integer
थंबनेल इमेज की ऊंचाई, पिक्सल में.
|
contentUrl |
string
थंबनेल इमेज का कॉन्टेंट यूआरएल. इमेज के यूआरएल का डिफ़ॉल्ट लाइफ़टाइम 30 मिनट होता है. यह यूआरएल, अनुरोध करने वाले व्यक्ति के खाते से टैग किया जाता है. जिस किसी के पास भी यूआरएल होगा वह इमेज को उसी तरह ऐक्सेस कर पाएगा जिस तरह अनुरोध करने वाला व्यक्ति करता है. प्रज़ेंटेशन की शेयर करने की सेटिंग में बदलाव होने पर, हो सकता है कि इमेज का ऐक्सेस हट जाए. थंबनेल इमेज का mime टाइप वही है जो GetPageThumbnailRequest में बताया गया है.
|
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/presentations
https://www.googleapis.com/auth/presentations.readonly
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
ThumbnailProperties
पेज के थंबनेल बनाने की सुविधा देता है.
फ़ील्ड |
mimeType |
enum (MimeType )
थंबनेल इमेज का माइम टाइप. हालांकि, यह ज़रूरी नहीं है. अगर माइम टाइप की जानकारी नहीं दी जाती है, तो माइम टाइप डिफ़ॉल्ट रूप से PNG पर सेट हो जाता है.
|
thumbnailSize |
enum (ThumbnailSize )
थंबनेल की इमेज का साइज़, जो ज़रूरी नहीं है. साइज़ की जानकारी न देने पर, सर्वर इमेज का डिफ़ॉल्ट साइज़ चुन लेता है.
|
MimeType
थंबनेल इमेज का MIME टाइप.
Enums |
PNG |
डिफ़ॉल्ट माइम टाइप. |
ThumbnailSize
थंबनेल की इमेज के पहले से तय साइज़.
Enums |
THUMBNAIL_SIZE_UNSPECIFIED |
थंबनेल इमेज का डिफ़ॉल्ट साइज़. थंबनेल का साइज़ तय न करने का मतलब है कि सर्वर इमेज का साइज़ इस तरह से चुनता है कि वह आने वाले समय में अलग-अलग हो सकता है. |
LARGE |
थंबनेल की इमेज की चौड़ाई 1600 पिक्सल होनी चाहिए. |
MEDIUM |
थंबनेल इमेज की चौड़ाई 800 पिक्सल होनी चाहिए. |
SMALL |
थंबनेल की इमेज की चौड़ाई 200 पिक्सल होनी चाहिए. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-03-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-03-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method: presentations.pages.getThumbnail\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.Thumbnail.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [ThumbnailProperties](#ThumbnailProperties)\n - [JSON representation](#ThumbnailProperties.SCHEMA_REPRESENTATION)\n- [MimeType](#MimeType)\n- [ThumbnailSize](#ThumbnailSize)\n- [Try it!](#try-it)\n\nGenerates a thumbnail of the latest version of the specified page in the presentation and returns a URL to the thumbnail image.\n\nThis request counts as an [expensive read request](https://developers.google.com/workspace/slides/limits) for quota purposes.\n\n### HTTP request\n\n`GET https://slides.googleapis.com/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------|-----------------------------------------------------------------|\n| `presentationId` | `string` The ID of the presentation to retrieve. |\n| `pageObjectId` | `string` The object ID of the page whose thumbnail to retrieve. |\n\n### Query parameters\n\n| Parameters ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `thumbnailProperties` | `object (`[ThumbnailProperties](/workspace/slides/api/reference/rest/v1/presentations.pages/getThumbnail#ThumbnailProperties)`)` The thumbnail properties. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe thumbnail of a page.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------|\n| ``` { \"width\": integer, \"height\": integer, \"contentUrl\": string } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `width` | `integer` The positive width in pixels of the thumbnail image. |\n| `height` | `integer` The positive height in pixels of the thumbnail image. |\n| `contentUrl` | `string` The content URL of the thumbnail image. The URL to the image has a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. The mime type of the thumbnail image is the same as specified in the `GetPageThumbnailRequest`. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive`\n- `https://www.googleapis.com/auth/drive.file`\n- `https://www.googleapis.com/auth/drive.readonly`\n- `https://www.googleapis.com/auth/presentations`\n- `https://www.googleapis.com/auth/presentations.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nThumbnailProperties\n-------------------\n\nProvides control over page thumbnail creation.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"mimeType\": enum (/workspace/slides/api/reference/rest/v1/presentations.pages/getThumbnail#MimeType), \"thumbnailSize\": enum (/workspace/slides/api/reference/rest/v1/presentations.pages/getThumbnail#ThumbnailSize) } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mimeType` | `enum (`[MimeType](/workspace/slides/api/reference/rest/v1/presentations.pages/getThumbnail#MimeType)`)` The optional mime type of the thumbnail image. If you don't specify the mime type, the mime type defaults to PNG. |\n| `thumbnailSize` | `enum (`[ThumbnailSize](/workspace/slides/api/reference/rest/v1/presentations.pages/getThumbnail#ThumbnailSize)`)` The optional thumbnail image size. If you don't specify the size, the server chooses a default size of the image. |\n\nMimeType\n--------\n\nThe mime type of the thumbnail image.\n\n| Enums ||\n|-------|------------------------|\n| `PNG` | The default mime type. |\n\nThumbnailSize\n-------------\n\nThe predefined thumbnail image sizes.\n\n| Enums ||\n|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `THUMBNAIL_SIZE_UNSPECIFIED` | The default thumbnail image size. The unspecified thumbnail size implies that the server chooses the size of the image in a way that might vary in the future. |\n| `LARGE` | The thumbnail image width of 1600px. |\n| `MEDIUM` | The thumbnail image width of 800px. |\n| `SMALL` | The thumbnail image width of 200px. |"]]