OAuth 2.0 のライブラリとサンプル
次のライブラリとサンプルを使用すると、OAuth 2.0 認可を使用して Gmail IMAP サービスと SMTP サービスに簡単にアクセスできます。
Java サンプル
JavaMail 1.5.2 以降は、IMAP の OAuth をネイティブにサポートしています。古いバージョンを使用する必要がある場合や、独自の実装を作成する場合は、Java サンプルコードをご覧ください。サンプルをダウンロードするには、OAuth2 を使用して Gmail の認証を行うためのツールとサンプルコードをご覧ください。
Python サンプル
PHP サンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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."]]],["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"]]