2013-02-19 22 views

回答

11

在v3中,用戶信息基本上是頻道信息。 通過製作頻道 - >列表「https://developers.google.com/youtube/v3/docs/channels/list」,您將獲得「snippet.channelId」下的信息「https://developers.google.com/youtube/v3/docs/channels#snippet.channelId

+2

此外,還有一個人類可讀的顯示名稱下channel.snippet.title – 2013-02-19 18:17:44

+0

感謝您的幫助傢伙!會很好如果有更多的文檔指出這是應該如何做,因爲有v2。 – cmwright 2013-02-20 03:18:33

+0

如何處理未關聯的帳戶?請參閱:http://stackoverflow.com/q/14988876/230167 – 2013-02-20 20:04:00

3

Youtube API v3不再支持用戶信息。使用userinfo API。

設置範圍:https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/userinfo.profile (範圍之間有一個空格)

,並得到:https://www.googleapis.com/oauth2/v1/userinfo?access_token={access_token}

相關問題