问题描述
我需要以编程方式获取安排直播视频的时间。但是打电话
GET https://api.vimeo.com/videos/46055xxxx -u <my_token>
不返回该字段,还有其他几个值,例如created_time
,modified_time
,release_time
,但不是我需要的值。
有人知道是否可以通过api获得它吗?
解决方法
我认为-u
不是用于通过Vimeo API进行身份验证的正确的curl选项,而是使用-H
:
https://curl.haxx.se/docs/manpage.html#-H
https://developer.vimeo.com/api/authentication#presenting-the-access-token
第二,Live API仅适用于Enterprise用户,因此,根据您的帐户级别,您可能始终无法获取该计划的事件元数据。您可以尝试请求获取实时事件端点:
https://developer.vimeo.com/api/reference/live
https://vimeo.zendesk.com/hc/en-us/articles/360042881411-Live-API-access