2013-02-25 141 views
0

我想授予應用程序使用HybridAuth(http://hybridauth.sourceforge.net/)和PHP將視頻發佈到我的YouTube頻道的權限。使用HybridAuth和PHP將視頻上傳到Youtube頻道

  1. 第一個問題是,可能嗎?
    我可以驗證和授予臉書,linkedin和twitter權限。我可以發佈狀態到這些網絡。還沒有嘗試連接到谷歌,但應該很容易添加,並且我假設我只需要Google身份驗證來訪問Youtube?

  2. HybridAuth的哪一部分可以用來上傳視頻?有沒有可用於學習的示例應用程序?有沒有人做過這個?

+0

感謝您的編輯@maroun – Adonis 2013-02-27 11:17:52

回答

0

不,您不能在Youtube上使用它,但可以在Vimeo中使用它。

0

您可以使用HybridAuth連接到Google API並將您的應用程序/ Projet註冊到Google(HybridAuth已啓用連接到Google,請參閱文檔以供參考),並且當您向Google註冊您的projet時,您可以開始添加/啓用通過瀏覽可用的API列表項目獲得正確的Google API。您將找到一個名爲YouTube Data API v3的API,點擊它並啓用將狀態更改爲開啓。

完成之後,您使用Google註冊的項目將啓用YouTube API,並且您必須使用Credentials來生成密鑰。

希望它能幫助...

這裏是一個有用的鏈接,你獲得通過谷歌開始使用YouTube:

來源:https://developers.google.com/youtube/registering_an_application

標題:通過谷歌

註冊您對YouTube應用

轉到Google Developers Console。 選擇一個項目。 在左側的邊欄中,選擇API &驗證。在API列表中,確保YouTube Data API v3的狀態爲ON。 在左側的邊欄中,選擇憑證。 該API支持兩種類型的憑證。創建適合您項目的憑證:

OAuth 2.0: Your application must send an OAuth 2.0 token with any request that accesses private user data. Your application sends a client ID and, possibly, a client secret to obtain a token. You can generate OAuth 2.0 credentials for web applications, service accounts, or installed applications. 
Learn more 

API keys: A request that does not provide an OAuth 2.0 token must send an API key. The key identifies your project and provides API access, quota, and reports. 

If the key type you need does not already exist, create an API key by selecting Create New Key and then selecting the appropriate key type. Then enter the additional data required for that key type. 
相關問題