PHP Youtube API - 获取洞察数据 [英] PHP Youtube API - Getting Insight Data

查看:25
本文介绍了PHP Youtube API - 获取洞察数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用适用于 Youtube 的 Zend PHP Gdata API 在 Youtube 上检索数据和上传视频,需要获取每个视频的洞察信息,但对如何获取感到困惑.

I am using the Zend PHP Gdata API for Youtube to retrieve data and upload video on Youtube and need to get Insight information for each video but confused how.

如果您已通过身份验证并且您拥有视频(我是/视频是),我已经在论坛上阅读了它在 getVideoEntry 中出现的随机帖子.我得到了统计对象,但我想要完整的洞察数据.

I have read on forums and random posts it comes through in the getVideoEntry if you are authenticated and you own the video (which I am / and the video is). I get the statistics object but I wanted the full insight data.

我看过以下文档,但不知道如何使用 API 获取它:

I have seen the following documentation but can't see how to get it using the API:

http://code.google.com/apis/youtube/2.0/developer_guide_protocol_insight.html

谢谢,詹姆斯

推荐答案

当我使用以下 URL 调用getVideoFeed"时,我终于可以正常工作并在提要中下载了 Insight zip 文件:http://gdata.youtube.com/feeds/api/users/default/uploads"确保您在 Youtube 连接对象上设置了主要版本(2).

I finally got this working and got the insight zip file download in the feed when calling "getVideoFeed" with the URL: "http://gdata.youtube.com/feeds/api/users/default/uploads" make sure though you setMajorVersion(2) on the Youtube connection object.

请注意:在直接与 YouTube 对话后,Insight ZIP 默认返回 7 天,尽管更改 user_starttime 您可以获得最多 28 天.

Please note: After speaking to YouTube directly the Insight ZIP returns 7 days by default, although changing the user_starttime you can get a MAXIMUM of 28 days.

希望这对未来的人有所帮助!

Hope this helps someone in the future!

詹姆斯

这篇关于PHP Youtube API - 获取洞察数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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