Merhaba,
Github reposudaki dosyaları indirdim. (
https://github.com/vimeo/vimeo.php) aşağıdaki gibi bir kullanım yapmak istediğimde video başlık ve acıklama gözüküyor ama video dosyasını yüklemiyor bir hata mesajıda almıyorum. Sizce nerede hata yapıyorum.
<?php
require_once "autoload.php";
use VimeoVimeo
;
$client =
new Vimeo(
"","","")
;
$file_name =
__DIR__.
"/1.mp4";
$uri =
$client->
upload(
$file_name)
;
$response =
$client->
request(
$uri .
'?fields=transcode.status')
;
if (
$response[
'body'][
'transcode'][
'status'] ===
'complete') {
print 'Your video finished transcoding.';
}
elseif (
$response[
'body'][
'transcode'][
'status'] ===
'in_progress') {
print 'Your video is still transcoding.';
}
else {
print 'Your video encountered an error during transcoding.';
}
$response =
$client->
request(
$uri .
'?fields=link')
;
echo "Your video link is: " .
$response[
'body'][
'link']
;