对于入门用户使用API​​最新的YouTube视频链接 [英] Getting most recent youtube video links for a user using API

查看:177
本文介绍了对于入门用户使用API​​最新的YouTube视频链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我一直在阅读的Youtube API - 我有兴趣显示由用户上传的三部最新影片。但是,正如我从来没有导航API或做这样的工作之前,我是一个有点究竟<迷茫href=\"http://$c$c.google.com/apis/youtube/2.0/developers_guide_protocol.html#Understanding_Video_Entries\" 。相对=nofollow>的API这里想告诉我什么的我明白的是,如果我输入一个URL如下所示:

So, I've been reading the Youtube API--I'm interested in showing the three most recent videos uploaded by a user. But, as I've never navigated an API or done this kind of work before, I'm a bit confused by what exactly the API here is trying to tell me. What I DO understand is that if I enter a URL like the following:

https://gdata.youtube.com/feeds/api/users/ aosjeff /上传

然后我会得到大量的信息,是一种名单。我不明白的是如何浏览HTML中列表中,并使其返回一个链接到最新的视频(或第二最近,等等),这样我可以嵌入视频到页面中。谁能解释这样对我?真的AP preciate的帮助!

Then I'll get a ton of information in a kind of list. What I don't understand is how to navigate that list in HTML, and make it return a link to the most recent video (or second most recent, etc) so that I can embed that video into the page. Can anyone explain this to me? Really appreciate the help!

注:我在网站建设软件,将不会允许我使用PHP文件,PHP或引用中工作

Note: I'm working within site building software that will not allow me to use PHP or reference .php files.

西蒙

推荐答案

您应该看看用PHP解析XML数据。这可能是做事情的最简便方法。初学者教程在这里:

You should look at parsing the xml data with php. This is probably the easiest way of doing things. Beginners tutorial here:

http://www.kirupa.com/web/xml_php_parse_beginner.htm

这篇关于对于入门用户使用API​​最新的YouTube视频链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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