在Vimeo api上克隆或复制视频

时间:2019-05-15 14:06:08

标签: php api upload duplicates vimeo

我正在尝试使用“拉方法”在php中使用api上传视频,其想法是从我的vimeo帐户克隆现有视频。 但我不明白,这是一个错误。

我这样请求:

$lib->request('/me/videos/'.$vimeoid.'?fields=download,files', array(), 'GET');

返回的“下载和文件”字段中,我在参数中使用 以下请求的“ upload.link”:

$lib->request( '/me/videos', [ 'upload' => [ 'approach' => 'pull', 'link' => $URL_VIDEO ], ], 'POST' );

只有这样才能返回错误。说该网址无效。

[body] => Array ( [invalid_parameters] => Array ( [0] => Array ( [field] => upload.link [error_code] => 2280 [error] => Invalid video URL. Please make sure it is correct, or try a different one. [developer_message] => All pull uploads must provide a URL to the video file for the parameterlink. ) ) [error] => You have provided an invalid parameter. Please contact developer of this application. [link] => [developer_message] => The parameters passed to this API endpoint didn't pass Vimeo's validation. Please check the invalid_parameters list for more information. [error_code] => 2204

我尝试使用多个URL,这些URL是数组键“ download”和“ files”的URL,但没有成功。

这个想法是要复制我帐户中的任何视频(已经存在的视频),而不必再次从vimeo下载视频并重新上传。

有人可以帮助我吗?有什么提示吗?

0 个答案:

没有答案