简体   繁体   English

如何使用PHP阅读Vimeo RSS Feed

[英]How To Read Vimeo RSS Feed Using PHP

I want to read the rss feed for my videos from Vimeo using a PHP script so I can update a database table with video data, however even though I can read the feed in my browser, Vimeo returns a 500 error. 我想使用PHP脚本从Vimeo中读取我的视频的rss提要,以便可以用视频数据更新数据库表,但是即使我可以在浏览器中读取提要,Vimeo也会返回500错误。

I looked at their API documentation which is about as clear as mud and wants me to create an API. 我查看了他们的API文档,该文档与泥浆一样清晰,希望我创建一个API。 I don't want an API for visitors to use, I just want to read a feed (which would normally be simple using curl. 我不想让访问者使用API​​,我只想阅读提要(使用curl通常很简单。

I haven't found any help at all from their documentation, hopefully someone could make it a bit clearer for me please. 我从他们的文档中根本找不到任何帮助,希望有人可以让我更清楚一点。

Thanks in advance. 提前致谢。

I finally managed to resolve this. 我终于设法解决了这个问题。 Feeling rather dumb now, the content of the curled rss feed from Vimeo did not display on the screen when echoed because of some of the content. 现在感觉有些愚蠢,由于某些内容,回响时Vimeo的卷曲rss feed的内容未显示在屏幕上。 It was however returned. 但是它被退回了。 I needed to view the screen source to see the content. 我需要查看屏幕源才能看到内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM