ספריות ודוגמאות של 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 (שעון 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."]]],[]]