Youtube API v3获取评论缺失库

时间:2016-04-21 17:20:34

标签: java youtube-api youtube-data-api

我想通过Youtube API v3获取视频评论。我已按照文档中的说明操作,并在此页面中下载了库:https://developers.google.com/api-client-library/java/apis/youtube/v3#sample。我已将库中的所有jar文件添加到我的项目中,但我仍然以某种方式丢失了库。我在这些导入行中出错:

import com.google.api.services.youtube.model.V3CommentListResponse;
import com.google.api.services.youtube.model.V3CommentThreadListResponse;
import com.google.common.collect.Lists;
import com.google.api.client.json.jackson.JacksonFactory;
import com.google.api.services.samples.youtube.cmdline.Auth;

我应该在项目中添加哪些库?如何获取它们?

由于

1 个答案:

答案 0 :(得分:0)

来自:https://github.com/youtube/api-samples/pull/39

修正:V3CommentThreadListResponse => CommentThreadListResponse

修正:V3CommentListResponse => CommentListResponse