Youtube API v3 search for videos, retrieve title and url(Youtube API v3 搜索视频、检索标题和 url)
问题描述
如何搜索 youtube-movies 并从中获取 id/url 和标题?是将它们添加到 Android 应用程序中的 BaseAdapter 类中.
How can you search for youtube-movies and get the id/url and the title from it? It's to add them to a BaseAdapter-class in an Android Application.
在 API 的第二个版本中,可以:https://developers.google.com/youtube/2.0/developers_guide_java#Retrieving_and_searching_for_videos
In the second version of the API, it was possible: https://developers.google.com/youtube/2.0/developers_guide_java#Retrieving_and_searching_for_videos
推荐答案
你需要做 search->list 并获取 id,然后将这些 id 插入 videos->list 检索详细信息.
You need to do search->list and get ids, then plug in those ids into videos->list to retrieve details.
我建议您尝试 API 浏览器 来理解这些功能.它们也与文档内联.
I suggest you to try API explorer to understand those functionalities. They are inline with documents too.
YouTube Direct Lite 项目是一个很好的入门项目.在开始之前一定要阅读 README.
YouTube Direct Lite project is a good one to get you started. Definitely read README before starting.
这篇关于Youtube API v3 搜索视频、检索标题和 url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Youtube API v3 搜索视频、检索标题和 url


基础教程推荐
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 降序排序:Java Map 2022-01-01