本文介绍了如何从googleapi Youtube API获取XML响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

YouTube似乎已将其API更新为新版API(会以的形式返回数据。无法将其更改为返回xml。


It seems that YouTube has updated their API to a newer one (YouTube Data API (v3)), and suddenly the YouTube searches on my site are not working.

I am trying to update them to work with the new API, but every time I get a JSON result, instead of XML, the old API returned xml so my code expects a xml return result. When I tried to specify XML in the call to the API, I got an error that the call is invalid.

Can anyone please explain to me how I can retrieve an XML from the YouTube API V3?

解决方案

The YouTube API v3 returns data in JSon. It is not possible to change it to return xml.

这篇关于如何从googleapi Youtube API获取XML响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 14:04
查看更多