Gmail API की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Gmail API एक RESTful API है. इसका इस्तेमाल Gmail मेलबॉक्स को ऐक्सेस करने और ईमेल भेजने के लिए किया जा सकता है. ज़्यादातर वेब ऐप्लिकेशन के लिए, Gmail API सबसे अच्छा विकल्प है. इससे किसी उपयोगकर्ता के Gmail डेटा को अनुमति के साथ ऐक्सेस किया जा सकता है. यह कई ऐप्लिकेशन के लिए सही है. जैसे:
- सिर्फ़ पढ़ने के लिए ईमेल निकालने, इंडेक्स करने, और बैकअप लेने की सुविधा
- अपने-आप या प्रोग्राम के हिसाब से मैसेज भेजना
- ईमेल खाते का माइग्रेशन
- ईमेल व्यवस्थित करना, जिसमें मैसेज फ़िल्टर करना और क्रम से लगाना शामिल है
- पूरे संगठन में ईमेल के हस्ताक्षर एक जैसे होने चाहिए
Gmail API में इस्तेमाल होने वाले सामान्य शब्दों की सूची यहां दी गई है:
- मैसेज
- ईमेल मैसेज में भेजने वाले का नाम, पाने वाले का नाम, विषय, और ईमेल का कॉन्टेंट शामिल होता है. मैसेज बनाने के बाद, उसमें बदलाव नहीं किया जा सकता. मैसेज को मैसेज रिसोर्स के तौर पर दिखाया जाता है.
- थ्रेड
- एक बातचीत में शामिल, मिलते-जुलते मैसेज का कलेक्शन. ईमेल क्लाइंट ऐप्लिकेशन में, जब एक या उससे ज़्यादा लोग किसी मैसेज का जवाब देते हैं, तो एक थ्रेड बन जाती है.
- लेबल
मैसेज और थ्रेड को व्यवस्थित करने का तरीका. उदाहरण के लिए, "टैक्स" लेबल बनाया जा सकता है. इसे किसी व्यक्ति के टैक्स से जुड़े सभी मैसेज और थ्रेड पर लागू किया जा सकता है. लेबल दो तरह के होते हैं:
- सिस्टम लेबल
- कंपनी के अंदर बनाए गए लेबल, जैसे कि
INBOX
, TRASH
या SPAM
. इन लेबल को न तो मिटाया जा सकता है और न ही इनमें बदलाव किया जा सकता है. हालांकि, कुछ सिस्टम लेबल, जैसे कि INBOX
को मैसेज और थ्रेड पर लागू किया जा सकता है या उनसे हटाया जा सकता है.
- उपयोगकर्ता के लेबल
- उपयोगकर्ता के बनाए गए लेबल. इन लेबल को उपयोगकर्ता या कोई ऐप्लिकेशन मिटा सकता है या उनमें बदलाव कर सकता है. उपयोगकर्ता के लेबल को लेबल संसाधन के तौर पर दिखाया जाता है.
- ड्राफ़्ट
ऐसा मैसेज जिसे भेजा नहीं गया है. ड्राफ़्ट में मौजूद मैसेज को बदला जा सकता है.
ड्राफ़्ट भेजने पर, वह अपने-आप मिट जाता है. साथ ही, SENT
सिस्टम लेबल वाला एक मैसेज बन जाता है. ड्राफ़्ट को ड्राफ़्ट संसाधन के तौर पर दिखाया जाता है.
अगले चरण
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Gmail API Overview\n\nThe Gmail API is a RESTful API that can be used to access Gmail mailboxes and\nsend mail. For most web applications the Gmail API is the best choice for\nauthorized access to a user's Gmail data and is suitable for various\napplications, such as:\n\n- Read-only mail extraction, indexing, and backup\n- Automated or programmatic message sending\n- Email account migration\n- Email organization including filtering and sorting of messages\n- Standardization of email signatures across an organization\n\nFollowing is a list of common terms used in the Gmail API:\n\n*Message*\n: An email message containing the sender, recipients, subject, and body. After a\n message has been created, a message cannot be changed. A message is represented\n by a [message resource](/workspace/gmail/api/reference/rest/v1/users.messages#Message).\n\n*Thread*\n: A collection of related messages forming a conversation. In an email client\n app, a thread is formed when one or more recipients respond to a message with\n their own message.\n\n*Label*\n\n: A mechanism for organizing messages and threads. For example,\n the label \"taxes\" might be created and applied to all messages and threads\n having to do with a user's taxes. There are two types of labels:\n\n *System labels*\n : Internally-created labels, such as `INBOX`, `TRASH`, or `SPAM`. These labels\n cannot be deleted or modified. However, some system labels, such as `INBOX`\n can be applied to, or removed from, messages and threads.\n\n *User labels*\n : Labels created by a user. These labels can be deleted or modified by the\n user or an application. A user label is represented by a\n [label resource](/workspace/gmail/api/reference/rest/v1/users.labels).\n\n*Draft*\n\n: An unsent message. A message contained within the draft can be replaced.\n Sending a draft automatically deletes the draft and creates a message with\n the `SENT` system label. A draft is represented by a\n [draft resource](/workspace/gmail/api/reference/rest/v1/users.drafts).\n\nNext steps\n----------\n\n- To learn about developing with Google Workspace APIs, including handling\n authentication and authorization, refer\n to [Get started as a Google Workspace developer](/workspace/guides/getstarted-overview).\n\n- To learn how to configure and run a simple Gmail API app, read the\n [Quickstarts overview](/workspace/gmail/api/guides/quickstarts-overview)."]]