我正在尝试做 youtube 示例 here关于如何使用JAVA下载字幕。我能够导入他们使用的所有库,除了 com.google.api.services.samples.youtube.cmdline.Auth 之外。我不知道在哪里可以找到要导入的库。这类似于question但我不确定给定的答案有什么帮助。
需要导入的两行是
Credential credential = Auth.authorize(scopes, "captions");
youtube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, credential)
.setApplicationName("youtube-cmdline-captions-sample").build();
最佳答案
您要查找的库在这里:https://github.com/google/gdata-java-client
maven依赖项是:
<dependency>
<groupId>com.google.gdata</groupId>
<artifactId>core</artifactId>
<version>1.47.1</version>
</dependency>
关于java - 导入 com.google.api.services.samples.youtube.cmdline.Auth;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36187677/