مكتبات ونماذج OAuth 2.0
تسهِّل المكتبات والعيّنات التالية البدء باستخدام إذن OAuth 2.0
للوصول إلى خدمات IMAP وSMTP في Gmail.
نموذج Java
يتوافق JavaMail 1.5.2 أو الإصدارات الأحدث بشكلٍ أساسي مع بروتوكول OAuth لبروتوكول IMAP.
إذا كنت بحاجة إلى استخدام إصدار قديم أو إنشاء عملية التنفيذ الخاصة بك، اطّلِع على
نموذج رمز Java.
لتنزيل العيّنة، يُرجى الرجوع إلى الأدوات وعينات الرموز البرمجية للمصادقة على Gmail باستخدام بروتوكول OAuth2.
نموذج Python
نموذج PHP
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-12-22 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-12-22 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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."]]],["OAuth 2.0 authorization for Gmail IMAP and SMTP services is facilitated through provided libraries and samples. Java users with JavaMail 1.5.2+ have native OAuth support; older versions or custom implementations can use linked sample code. Python and PHP users can access \"Getting Started\" guides and download sample code via provided links. The tools for all three can be found in the linked Gmail OAuth2 repository.\n"]]