UserPhoto
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
JSON के काेड में दिखाना |
{
"id": string,
"primaryEmail": string,
"kind": string,
"etag": string,
"photoData": string,
"mimeType": string,
"width": integer,
"height": integer
} |
फ़ील्ड |
id |
string
यह वह आईडी है जिसका इस्तेमाल एपीआई, उपयोगकर्ता की पहचान करने के लिए करता है.
|
primaryEmail |
string
उपयोगकर्ता का मुख्य ईमेल पता.
|
kind |
string
एपीआई रिसॉर्स का टाइप. फ़ोटो संसाधनों के लिए, यह admin#directory#user#photo है.
|
etag |
string
संसाधन का ETag.
|
photoData |
string (bytes format)
उपयोगकर्ता की फ़ोटो का अपलोड किया गया डेटा, वेब-सेफ़ Base64 फ़ॉर्मैट में बाइट में. इसका मतलब है:
- स्लैश (/) वर्ण को अंडरस्कोर (_) वर्ण से बदल दिया जाता है.
- प्लस साइन (+) वर्ण को हाइफ़न (-) वर्ण से बदल दिया जाता है.
- बराबर के चिह्न (=) को तारे के निशान (*) से बदल दिया जाता है.
- पैडिंग के लिए, RFC-4648 baseURL की परिभाषा के बजाय, पीरियड (.) वर्ण का इस्तेमाल किया जाता है. पैडिंग के लिए, बराबर के निशान (=) का इस्तेमाल किया जाता है. ऐसा यूआरएल-पार्सिंग को आसान बनाने के लिए किया जाता है.
- अपलोड की जा रही फ़ोटो का साइज़ चाहे जो भी हो, एपीआई उसे 96x96 पिक्सल पर छोटा कर देता है.
base64 कोड में बदली गई स्ट्रिंग.
|
mimeType |
string
फ़ोटो का MIME टाइप. JPEG , PNG , GIF , BMP , TIFF , और वेब-सेफ़ Base64 एन्कोडिंग को वैल्यू के तौर पर इस्तेमाल किया जा सकता है.
|
width |
integer
फ़ोटो की चौड़ाई, पिक्सल में.
|
height |
integer
फ़ोटो की ऊंचाई, पिक्सल में.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-24 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-24 (UTC) को अपडेट किया गया."],[],[],null,["# UserPhoto\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"primaryEmail\": string, \"kind\": string, \"etag\": string, \"photoData\": string, \"mimeType\": string, \"width\": integer, \"height\": integer } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The ID the API uses to uniquely identify the user. |\n| `primaryEmail` | `string` The user's primary email address. |\n| `kind` | `string` The type of the API resource. For Photo resources, this is `admin#directory#user#photo`. |\n| `etag` | `string` ETag of the resource. |\n| `photoData` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` The user photo's upload data in [web-safe Base64](https://en.wikipedia.org/wiki/Base64#URL_applications) format in bytes. This means: - The slash (/) character is replaced with the underscore (_) character. - The plus sign (+) character is replaced with the hyphen (-) character. - The equals sign (=) character is replaced with the asterisk (\\*). - For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. - Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels. A base64-encoded string. |\n| `mimeType` | `string` The MIME type of the photo. Allowed values are `JPEG`, `PNG`, `GIF`, `BMP`, `TIFF`, and web-safe base64 encoding. |\n| `width` | `integer` Width of the photo in pixels. |\n| `height` | `integer` Height of the photo in pixels. |"]]