douluohan3403 2009-11-09 04: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 18: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条)

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作