vimeo php api 添加视频标签
vimeo php api add video tags
这是我的代码
$my_data = array(
"name" => "Sequence 01",
"description" => "Video uploading test sequence 01",
"tags" => array( "hello", "hi" )
);
$update = $vimeo_obj->request( $uri, $my_data, 'PATCH' );
它更新了视频的名称和描述。但是它不会向视频添加标签。
请帮忙
目前不支持通过PATCH /videos/{video_id}
更新视频标签。
要向您的视频添加标签,请通过 PUT /videos/{video_id}/tags
提出请求,负载为
"data" => [
["name" => "tag_text_1"],
["name" => "tag_text_2"]
]
这是我的代码
$my_data = array(
"name" => "Sequence 01",
"description" => "Video uploading test sequence 01",
"tags" => array( "hello", "hi" )
);
$update = $vimeo_obj->request( $uri, $my_data, 'PATCH' );
它更新了视频的名称和描述。但是它不会向视频添加标签。 请帮忙
目前不支持通过PATCH /videos/{video_id}
更新视频标签。
要向您的视频添加标签,请通过 PUT /videos/{video_id}/tags
提出请求,负载为
"data" => [
["name" => "tag_text_1"],
["name" => "tag_text_2"]
]