2014-12-13 100 views
2

按照本教程http://www.androidhive.info/2012/01/android-json-parsing-tutorial我已將其調整爲使用此URL「https://www.googleapis.com/calendar/v3/calendars/[calendar_ID]/events?singleEvents=true&orderBy=startTime&key=[my_API_key]」解析公共Google日曆,而不是示例中的URL。這個日曆是公開的。無法從公共Google日曆API v3中獲取事件

當我執行應用程序,響應是這樣的:

{ 
"error": { 
    "errors": [ 
    { 
    "domain": "usageLimits", 
    "reason": "accessNotConfigured", 
    "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.", 
    "extendedHelp": "https://console.developers.google.com" 
    } 
    ], 
    "code": 403, 
    "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration." 
} 
} 

問題出在哪裏?我做錯了什麼?

+1

檢查給定的api密鑰是否有效,如果無效表示您的Gmail登錄在Google API服務中註冊了api密鑰。 – Mohd 2014-12-13 12:19:34

+0

最後我發現了這個問題,謝謝。我在答案中解釋它。 – 2014-12-15 08:56:42

回答

相關問題