的Youtube API第3版上搜索视频,检索标题和网址 [英] Youtube API v3 search for videos, retrieve title and url

查看:325
本文介绍了的Youtube API第3版上搜索视频,检索标题和网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何搜索YouTube的电影,并获得ID / URL,并从它的标题?这是把它们添加到一个BaseAdapter类在Android应用程序。

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的第二个版本,这是可能的:<一href="https://developers.google.com/youtube/2.0/developers_guide_java#Retrieving_and_searching_for_videos" rel="nofollow">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

推荐答案

首先,你正在阅读v2的文件,而不是V3。

First of all you are reading v2 document, not v3.

<一个href="https://developers.google.com/youtube/v3/getting-started">https://developers.google.com/youtube/v3/getting-started将帮助你更好的。

您需要做的搜索 - >列表并获得身份证,然后插入这些ID进入 videos-> 列表获取详细信息。

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的直接精简版项目是一个很好的让你开始。绝对阅读自述开始前。

YouTube Direct Lite project is a good one to get you started. Definitely read README before starting.

这篇关于的Youtube API第3版上搜索视频,检索标题和网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆