【发布时间】:2013-03-21 16:17:05
【问题描述】:
当我对视频条目使用 getEditLink() 时,它始终为空,即使连接的用户是视频的作者。
// $this->yt_user is the Zend_Gdata_YouTube object that is connected
// to the API using the user's session token. This same object was
// used to upload the video to the user's account.
// $input['get'] is sanitized $_GET. The id value is the video's ID
// sent by Youtube after a video upload from the browser.
$videoEntry = $this->yt_user->getVideoEntry($input['get']['id']);
var_export($videoEntry->getEditLink());
我可以通过调用 var_export($videoEntry) 来验证 $videoEntry 是一个有效的视频。
上传后我需要能够编辑视频,但是因为getEditLink()总是为null,所以不能调用$videoEntry->getEditLink()->getHref();
【问题讨论】:
-
你可以看看这个帖子 - 它似乎很相关:groups.google.com/forum/?fromgroups=#!topic/youtube-api-gdata/…
-
啊。我阅读的示例从未显示除视频 ID 之外的方法的任何参数。谢谢大家。
标签: php zend-framework youtube-api