以 Pro 帐户请求 Vimeo 私人视频文件
request Vimeo private video file as Pro account
我想使用视频 ID 请求我的私人视频文件(我的帐户是 Pro)。但我不知道如何在请求中证明我的帐户。
这就是我做的!
GET https://api.vimeo.com/videos/{video_id}
body
{
"grant_type": "client_credentials"
}
header
"Authorization" : "bearer {access_token}"
"Accept" : "application/vnd.vimeo.user+json;version=3.0,application/vnd.vimeo.video+json;version=3.4"
"Content-Type" : "application/json"
这是对此的回应..
{
"error": "Something strange occurred. Please contact the app owners.",
"link": null,
"developer_message": "No user credentials were provided.",
"error_code": 8003
}
您正在生成一个 client_credentials
令牌,它只能检索 Vimeo 上的 public 数据。相反,您需要通过 OAuth 工作流程或 Vimeo 开发人员站点上的个人访问令牌生成经过身份验证的令牌。更多信息在这里:
https://developer.vimeo.com/api/authentication#using-the-auth-code-grant-step-1
https://developer.vimeo.com/api/guides/start/#generate-access-token
添加新应用程序后从您的帐户生成 access_token。
然后在 URL 中传递 access_token 或作为参数
例如 https://api.vimeo.com/videos?access_token=***********************&links=https://vimeo.com/29474908
我想使用视频 ID 请求我的私人视频文件(我的帐户是 Pro)。但我不知道如何在请求中证明我的帐户。
这就是我做的!
GET https://api.vimeo.com/videos/{video_id}
body
{
"grant_type": "client_credentials"
}
header
"Authorization" : "bearer {access_token}"
"Accept" : "application/vnd.vimeo.user+json;version=3.0,application/vnd.vimeo.video+json;version=3.4"
"Content-Type" : "application/json"
这是对此的回应..
{
"error": "Something strange occurred. Please contact the app owners.",
"link": null,
"developer_message": "No user credentials were provided.",
"error_code": 8003
}
您正在生成一个 client_credentials
令牌,它只能检索 Vimeo 上的 public 数据。相反,您需要通过 OAuth 工作流程或 Vimeo 开发人员站点上的个人访问令牌生成经过身份验证的令牌。更多信息在这里:
https://developer.vimeo.com/api/authentication#using-the-auth-code-grant-step-1 https://developer.vimeo.com/api/guides/start/#generate-access-token
添加新应用程序后从您的帐户生成 access_token。
然后在 URL 中传递 access_token 或作为参数
例如 https://api.vimeo.com/videos?access_token=***********************&links=https://vimeo.com/29474908