2017-10-24 8 views
0

업로드 후, PHP를 사용하여 Vimeo에서 비디오의 제목/설명을 설정하는 방법은 무엇입니까?Vimeo PHP SDK - 제목/설명 설정 방법은 무엇입니까?

$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 "; 
} 

답변

1

당신은 호출해야합니다 :

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

이 있는지 확인 토큰은 편집 가능 범위를 가지고있다.

범위에 대한 자세한

: https://developer.vimeo.com/api/authentication#supported-scopes

+0

덕분에 많이, 정말 내 토큰은 편집 할 수 없습니다. 새 것을 만들었습니다. – MCunha98