2014-09-12 36 views
1

我使用新的YouTube數據API V3時遇到問題。YouTube數據API V3 - 錯誤訪問未配置

我仍在使用V2版本,但我計劃將我的Web應用程序遷移到新版本。

https://www.googleapis.com/youtube/v3/videos?id=TYkPtAmJn4E&key=******************* &部分=片斷,contentDetails,數據統計,狀況

:使用Web瀏覽器的類型做一些測試與呼叫後

我收到以下錯誤:

{ 
    "error": { 
    "errors": [ 
    { 
     "domain": "usageLimits", 
     "reason": "accessNotConfigured", 
     "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." 
    } 
    ], 
    "code": 403, 
    "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." 
    } 
    } 

我聲明,控制檯應該被正確配置,你可以從所附的圖片看,因爲它工作正常時間超過一年的V2版本API。

你能幫我解決這個問題嗎?

謝謝。

+0

問題解決:在Developers Console - 公共API訪問設置引用者「允許任何引用者」,然後重新生成密鑰! ... 謝謝! – 2014-11-17 23:02:58

+0

這意味着什麼幫助 – 2016-11-28 08:51:25

回答

0

您必須創建一個項目,啓用Data API v3 from console並使用您爲該項目創建的憑證。

+0

是的,我已經創建了所有這一切,並且在YouTube API V2上運行了一年多。我試圖在這裏張貼我的設置圖片,但我沒有在這個論壇發佈圖片的要求!任何其他想法?謝謝。 – 2014-09-12 20:05:22

+0

只需從頭開始https://developers.google.com/youtube/v3/getting-started – 2014-09-15 14:23:36

+0

已經做了一切,但沒有任何變化!我甚至重新生成了apikey,但仍然沒有任何東西!謝謝。 – 2014-09-16 15:34:40

相關問題