我們使用的是YouTube API方法CommentThreads: list以獲取與YouTube頻道相關的所有評論,並且至少半年內工作正常使用YouTube v3 Data API www.googleapis.com/auth/youtube.readonly範圍。範圍是只讀的,因爲我們只需要獲得評論,而不是寫任何東西。由於幾個星期前只能使用只讀範圍來做到這一點(它返回403「權限不足」錯誤),因此需要完整範圍www.googleapis.com/auth/youtube.force-ssl才能列出註釋。CommentThreads的權限不足(403):列表YouTube API方法與只讀範圍
令牌通過Google OAuth2進程獲取。
只讀範圍是official scope for the API,我找不到在列表方法的文檔中使用它的任何限制,並且似乎沒有宣佈對API的更改(因爲它只是在最近才停止工作) 。有沒有人遇到過類似的問題?
如果您檢查您提供的[CommentThreads:list]鏈接(https://developers.google.com/youtube/v3/docs/commentThreads/list),您會注意到在給定示例中使用了JAVA, PHP或PYTHON,它使用範圍'https:// www.googleapis.com/auth/youtube.force-ssl'。所以這個方法似乎需要這個範圍才能工作。 – KENdi
與https://stackoverflow.com/questions/30385433/insufficient-permission-when-run-youtube-retriving-comments一樣的問題 –