我試圖從本地服務器上傳視頻到我的YouTube帳戶。我一直試圖從https://github.com/jimdoescode/CodeIgniter-YouTube-API-Library實施此示例,但它顯然已被棄用,並返回「消費者密鑰未註冊」。CodeIgniter將視頻從本地主機上傳到YouTube
我已成功完成身份驗證,但任何支持新版YouTube v3 API的新庫都將不勝感激。我使用的是CodeIgniter。
我試圖從本地服務器上傳視頻到我的YouTube帳戶。我一直試圖從https://github.com/jimdoescode/CodeIgniter-YouTube-API-Library實施此示例,但它顯然已被棄用,並返回「消費者密鑰未註冊」。CodeIgniter將視頻從本地主機上傳到YouTube
我已成功完成身份驗證,但任何支持新版YouTube v3 API的新庫都將不勝感激。我使用的是CodeIgniter。
您應該遵循由YouTube創建的PHP官方API:
不知道你錯過了它,因爲其中一個鏈接放入您提供的鏈接的已棄用部分。
Here is an example of a fileupload that can be found on the github
過去,這點所有信息都採取直接從github上:
說明:
的谷歌API客戶端庫,可以與谷歌的API 工作如您的服務器上的Google+,雲端硬盤或YouTube。
從github上基本實施例:
參見實施例/目錄的關鍵客戶端功能的例子。從谷歌庫頁
<?php
require_once 'google-api-php-client/autoload.php'; // or wherever autoload.php is located
$client = new Google_Client();
$client->setApplicationName("Client_Library_Examples");
$client->setDeveloperKey("YOUR_APP_KEY");
$service = new Google_Service_Books($client);
$optParams = array('filter' => 'free-ebooks');
$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
foreach ($results as $item) {
echo $item['volumeInfo']['title'], "<br /> \n";
}
消息:
此客戶端庫處於測試階段。我們將努力支持 庫,並在將來保持向後兼容性,但我們 保留在必要時進行不兼容更改的權利。
顯然我吸收了這個eyeopener我會嘗試實施和更新與我有什麼。 – 2014-12-03 16:08:19