GET https://api.vimeo.com/videos/{video_id}
+------------------+--------------------------------------------------+
| Http Status Code | Explanation |
+------------------+--------------------------------------------------+
| 200 Ok | |
+------------------+--------------------------------------------------+
| 403 | if the video does exist, but the view or the app |
| | requesting the video resource does not have |
| | permission to access that video. |
+------------------+--------------------------------------------------+
| 404 not found | If the video cannot be found. |
+------------------+--------------------------------------------------+
检查您是否 (1) 或用户 (2) 拥有视频:
(1) GET https://api.vimeo.com/me/videos/{video_id}
(2) GET https://api.vimeo.com/users/{user_id}/videos/{video_id}
+------------------+------------------------------------------------------+
| Http Status Code | Explanation |
+------------------+------------------------------------------------------+
| 200 Ok | |
+------------------+------------------------------------------------------+
| 404 not found | If the video is not owned by the authenticated user. |
+------------------+------------------------------------------------------+
1 回答
为什么不使用Vimeo developper API来检查Vimeo ID是否有效,而不是尝试发明Vimeo Video ID验证器?
检查您是否
(1)
或用户(2)
拥有视频: