vimeo api-无法从元数据连接uli请求

发布于 2025-01-23 09:41:00 字数 873 浏览 3 评论 0 原文

我目前正在使用Vimeo API使用Axios。

我为何可以要求 https://api.vime.com/tags/customtomtag 并得到一个回应,显示确实有35个视频。

"metadata": {
    "connections": {
        "videos": {
            "uri": "/tags/customtag/videos",
            "options": [
                "GET"
            ],
            "total": 35
        }
    }
},

但是,如果我在上一个请求中使用uri提出另一个请求,例如 https://api.vimeo.vimeo 。

{
"total": 0,
"page": 1,
"per_page": 25,
"paging": {
    "next": null,
    "previous": null,
    "first": "/tags/customtag/videos?page=1",
    "last": "/tags/customtag/videos?page=1"
},
"data": []

​有没有办法访问此数据并保持私密性?

I am currently using axios with the Vimeo API.

I'm confused on why I can request https://api.vimeo.com/tags/customtag and get a response showing that there is indeed 35 videos.

"metadata": {
    "connections": {
        "videos": {
            "uri": "/tags/customtag/videos",
            "options": [
                "GET"
            ],
            "total": 35
        }
    }
},

But then if I make another request using the uri in the previous request like https://api.vimeo.com/tags/customtag/videos it is empty:

{
"total": 0,
"page": 1,
"per_page": 25,
"paging": {
    "next": null,
    "previous": null,
    "first": "/tags/customtag/videos?page=1",
    "last": "/tags/customtag/videos?page=1"
},
"data": []

}

These videos are indeed hidden off of Vimeo for competitor confidentiality purposes. Is there a way to access this data and keep it private?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乜一 2025-01-30 09:41:00

编辑:

这是响应的错误,标签不会返回私人视频。

您可以使用视频端点获取私人视频,

您可以使用 filter_tag 查询参数,因此

get/me/videos?filter_tag = fastertag应该执行您的需求。

EDITED:

This is a bug on the Response, the tags do not return private videos.

You can fetch your private videos using your videos endpoint,

https://developer.vimeo.com/api/reference/videos#get_videos

You can use the filter_tag query parameter, so for example

GET /me/videos?filter_tag=customtag should do what you're looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文