2014-12-03 73 views

回答

0

您應該遵循由YouTube創建的PHP官方API:

  1. Official PHP API provided by YouTube (link towards github)
  2. Google APIs Client Library for PHP
  3. Google APIs Client Library for PHP Get Started

不知道你錯過了它,因爲其中一個鏈接放入您提供的鏈接的已棄用部分。

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

消息:

此客戶端庫處於測試階段。我們將努力支持 庫,並在將來保持向後兼容性,但我們 保留在必要時進行不兼容更改的權利。

+0

顯然我吸收了這個eyeopener我會嘗試實施和更新與我有什麼。 – 2014-12-03 16:08:19