0

当我对Developer API进行授权调用以获取特定视频的视频信息时,我会得到响应:

{
...
"files": [
    ...
    ...
    {
        "quality": "hd",
        "type": "video/mp4",
        "width": 1280,
        "height": 720,
        "link": "LINK",
        "created_time": "Time",
        "fps": value,
        "size": size,
        "md5": "value",
        "link_secure": "link_source"
    },
    ...
    ...
],

"download": [
    ...
    ...
    {
        "quality": "source",
        "type": "source",
        "width": 1920,
        "height": 1080,
        "expires": "time",
        "link": "link",
        "created_time": "time",
        "fps": value,
        "size": size,
        "md5": "value"
    },
    ...
    ...
]
}

我正在使用Pyvimeo==0.3.2Pyvimeo==1.0.0为 Vimeo。

但是当我从我的服务器或 POSTMAN 中点击“ https://api.vimeo.com/videos/{vimeo_id }”(带有 Client_id 和授权)时,我只得到:

{
...
"download": [
...
{
    "quality": "source",
    "type": "source",
    "width": 1920,
    "height": 1080,
    "expires": "time",
    "link": "link",
    "created_time": "time",
    "fps": value,
    "size": size,
    "md5": "value"
},
...
]
...
}

API 响应中没有关键的“文件”。为什么我在视频响应中没有得到“文件”键?

API 文档中没有任何此类更新。

4

1 回答 1

1

这是一个错误。使用此标头发出请求:

{ "Accept", "application/vnd.vimeo.*+json; version=3.1" }

(使用 3.1 版本而不是默认版本 3.4)

于 2018-02-26T14:54:52.520 回答