См. ответ и журнал ниже. Я не нахожу тегов в ответе. Поэтому он печатает теги как пустые. Как пометить информацию из фрагмента?
Пример кода:
public static void printVideo(int index, @NonNull Video video) {
VideoSnippet snippet = video.getSnippet();
log.trace("Video[" + index + "] Tags = {}", snippet.getTags());
}
Журнал тестирования:
youtube.log:[Test worker] TRACE com.ct.youtube.util.YouTubeUtil - Video[0] Tags = null
Пример ответа:
{
"contentDetails": {
"duration": "PT5M28S"
},
"snippet": {
"channelId": "UCVfwlh9XpX2Y_tQfjeln9QA",
"channelTitle": "BibleProject",
"description": "The wisest king of Israel, King Solomon, is associated with three books of the Bible: Proverbs, Ecclesiastes, and the Song of Songs. Each book offers a unique perspective on how humans can rule with wisdom and the fear of the Lord. In this video, we briefly explore how the message of each book fits into the overall story of the Bible.\n\n#Solomon #Proverbs #Wisdom",
"publishedAt": "2019-06-27T22:09:15.000Z",
"thumbnails": {
"default": {
"url": "

}
},
"title": "The Books of Solomon"
},
"statistics": {
"commentCount": "1839",
"favoriteCount": "0",
"likeCount": "37779",
"viewCount": "1213094"
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... d-api-call