Vimeo PHP SDK - 如何设置 title/description?

Vimeo PHP SDK - how set the title/description?

上传后,如何使用 PHP 在 Vimeo 中设置视频的标题/描述?

$uri = $lib->upload($localfile);
$video_data = $lib->request($uri);
if ($uri)
{
    $link = $video_data['body']['link'];
    $lib->request($uri, array('name' => 'Teste','description' => 'My upload by vimeo php api'), 'PATCH');
    echo "<br>Success $filename was sent to $link ";
}

您应该致电:

$lib->request($uri, array(
             'name' => 'name of video',
             'description' => 'description'
             ), 'PATCH');

确保您的令牌已启用 编辑 范围。

有关作用域的更多信息:https://developer.vimeo.com/api/authentication#supported-scopes