搜索

第 121 章 Google Drive 组件

download PDF

从 Camel 版本 2.14 开始提供

Google Drive 组件通过 Google Drive Web API 提供对 Google Drive 文件存储服务的访问

Google Drive 使用 OAuth 2.0 协议 来验证 Google 帐户并授权对用户数据的访问。在可以使用此组件之前,您需要 创建帐户并生成 OAuth 凭据。凭证由 clientId、clientSecret 和 refreshToken 组成。用于生成较长的 refreshToken 的方便资源是 OAuth 播放

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

    <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-google-drive</artifactId>
            <version>2.14-SNAPSHOT</version>
    </dependency>

121.1. URI 格式

GoogleDrive 组件使用以下 URI 格式:

        google-drive://endpoint-prefix/endpoint?[options]

端点前缀可以是以下之一:

  • drive-about
  • drive-apps
  • drive-changes
  • drive-channels
  • drive-children
  • drive-comments
  • drive-files
  • drive-parents
  • drive-permissions
  • drive-properties
  • drive-realtime
  • drive-replies
  • drive-revisions
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.