Google 文档 Api 驱动没有方法导出
Google docs Api Drive no method export
我需要获取 pdf 格式的文档文件。我阅读了这篇文章 https://developers.google.com/drive/v3/web/manage-downloads 并尝试使用它,但我的驱动对象中没有方法导出。你能帮助我吗?
这是我的 Pom 文件:
<google-api-version>1.20.0</google-api-version>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
<version>${google-api-version}</version>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>${google-api-version}</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v2-rev170-${google-api-version}</version>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client-jetty</artifactId>
<version>1.21.0</version>
</dependency>
将 POM 中的版本更改为此
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v3-rev6-1.20.0</version>
</dependency>
我需要获取 pdf 格式的文档文件。我阅读了这篇文章 https://developers.google.com/drive/v3/web/manage-downloads 并尝试使用它,但我的驱动对象中没有方法导出。你能帮助我吗?
这是我的 Pom 文件:
<google-api-version>1.20.0</google-api-version>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
<version>${google-api-version}</version>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>${google-api-version}</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v2-rev170-${google-api-version}</version>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client-jetty</artifactId>
<version>1.21.0</version>
</dependency>
将 POM 中的版本更改为此
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v3-rev6-1.20.0</version>
</dependency>