OAuth 2.0 लाइब्रेरी और सैंपल
यहां दी गई लाइब्रेरी और सैंपल की मदद से, Gmail की आईएमएपी और एसएमटीपी सेवाओं को ऐक्सेस करने के लिए, OAuth 2.0 अनुमति का इस्तेमाल करना आसान हो जाता है.
Java कोड का नमूना
JavaMail 1.5.2 या इसके बाद के वर्शन में, आईएमएपी के लिए OAuth की सुविधा पहले से मौजूद होती है.
अगर आपको किसी पुराने वर्शन का इस्तेमाल करना है या अपना कोड बनाना है, तो Java का सैंपल कोड देखें.
सैंपल डाउनलोड करने के लिए, OAuth2 की मदद से Gmail में पुष्टि करने के लिए टूल और सैंपल कोड देखें.
Python कोड का नमूना
PHP नमूना
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया."],[[["This page provides libraries and samples to facilitate using OAuth 2.0 authorization for accessing Gmail IMAP and SMTP services."],["Sample code and tools are available for Java, Python, and PHP to help developers integrate OAuth 2.0 into their applications."],["JavaMail 1.5.2 and later natively support OAuth for IMAP, while older versions can utilize the provided Java sample code."],["Python and PHP developers can find getting started guides and downloadable samples for seamless OAuth 2.0 integration with Gmail."]]],[]]