获取 vimeo 视频信息 (Python) --- 不同的响应
Get vimeo video info (Python) --- Different responses
当我授权调用 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"
},
...
...
]
}
我正在为 Vimeo 使用 Pyvimeo==0.3.2
和 Pyvimeo==1.0.0
。
但是当我从我的服务器或 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 响应中没有键 "files"。为什么我在视频响应中没有得到 "files" 键?
API 文档中没有任何此类更新。
这是一个错误。使用此 header:
发出请求
{ "Accept", "application/vnd.vimeo.*+json; version=3.1" }
(使用版本 3.1 而不是默认版本 3.4)
当我授权调用 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"
},
...
...
]
}
我正在为 Vimeo 使用 Pyvimeo==0.3.2
和 Pyvimeo==1.0.0
。
但是当我从我的服务器或 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 响应中没有键 "files"。为什么我在视频响应中没有得到 "files" 键?
API 文档中没有任何此类更新。
这是一个错误。使用此 header:
发出请求{ "Accept", "application/vnd.vimeo.*+json; version=3.1" }
(使用版本 3.1 而不是默认版本 3.4)