2013-07-05 37 views
0

我一直在努力掙扎幾個小時,但仍然無法解決問題。我使用的伊甸園PHP和laravel 4.用eden php和laravel 4上傳到youtube?

我想簡單地使用下面的代碼提交上傳令牌的請求:

include('eden.php'); 

    //Requests::register_autoloader(); 
    $t = 'token_here'; 
    $key = 'api_key_here'; 

    $upload = eden('google')->youtube($t, $key)->upload(); 

    $title = 'Awesome video test'; 
    $description = 'as mentioned this is a test'; 
    $category = 'People'; 
    $keyword = 'testing'; 
    return $upload->getUploadToken($title, $description, $category, $keyword, 'youtube_username'); 

不過,我不斷收到以下錯誤:

Undefined variable: ___file

ErrorException …/­public/­eden.php54

然而,我所做的任何其他API請求都是完美的......如果你能幫我解決這個問題(很可能是因爲我的愚蠢),我會永遠很棒。

在此先感謝!

回答