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."
}
}
问题出在哪里?我做错了什么?
检查给定的api密钥是否有效,如果无效表示您的Gmail登录在Google API服务中注册了api密钥。 – Mohd 2014-12-13 12:19:34
最后我发现了这个问题,谢谢。我在答案中解释它。 – 2014-12-15 08:56:42