douluohan3403 2009-11-08 20:28
浏览 225
已采纳

如何通过Youtube API获取视频上传日期?

I'm confused as to where I can find the date a youtube video was uploaded. I've been using the following two functions:

$videoEntry->getUpdated()->getText();
$videoEntry->getVideoRecorded()

The first is when the video was last updated, and I'm not so sure that is the same as when it was uploaded. The "video recorded" is not always present. I assume its taken from camera metadata.

I need the date it was uploaded to the youtube website. Thanks.

  • 写回答

4条回答 默认 最新

  • douhui9631 2009-11-10 10:08
    关注

    I was actually hoping for an answer through the PHP API specifically. None of the functions in the documentation were working, though I was able to get the date uploaded from PHP like so:

    $videoEntry->mediaGroup->uploaded->text
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部