第 122 章 Google Mail Stream Component

可作为 Camel 版本 2.22 可用

Google 邮件组件通过 Google 邮件 Web API 提供对 Gmail 的访问。

Google 邮件使用 OAuth 2.0 协议 对 Google 帐户进行身份验证,并授权访问用户数据。在使用此组件前,您需要 创建帐户并生成 OAuth 凭证。凭证包括 clientId、clientSecret 和 refreshToken。生成长期刷新Token 的方便资源是 OAuth playground

Maven 用户需要在这些组件的 pom.xml 中添加以下依赖项:

    <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-google-mail</artifactId>
            <version>2.22-SNAPSHOT</version>
    </dependency>

122.1. URI 格式

GoogleMail 组件使用以下 URI 格式:

        google-mail-stream://index?[options]