我需要以pdf格式获取我的doc文件。我读过这篇文章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>
答案 0 :(得分:0)
将您在POM中的版本更改为此
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-drive</artifactId>
<version>v3-rev6-1.20.0</version>
</dependency>