I'm using Google Calendar API v3 with Oauth 1.0 and JAVA for my Web Application.
It says on the official website ( https://developers.google.com/google-apps/calendar/pricing ) that the quota is 10 000 queries per day. I've also set up in my Google API console panel a limit of a 100 requests per second per user.
When I ran my test, the calendar API was working fine ( all the operations I was doing in my java application where showing up on my calendar ). Then when I hit around 50 operations I got a 403 Forbidden, quotaExceeded error.
Does anyone have the same issue ?
Thanks
EDIT :
The exact JSON error I get from google is :
com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "usageLimits",
"message" : "Quota Exceeded",
"reason" : "quotaExceeded"
} ],
"message" : "Quota Exceeded"
}
The google calendar maven dependency in my project :
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-calendar</artifactId>
<version>v3-rev7-1.6.0-beta</version>
</dependency>
Yes, I have been there, see this discussion ...
Or you sure that your API console is related to your Google Apps project and the used OAUTH consumer key/secret ? There is a difference between a API console for use with ordinary Google accounts and Google Apps accounts. You must create a Google Apps marketplace listing, that will automatically create a new API console that relates to the OAUTH consumer key/secret that you receive from the marketplace.
Hope this helps...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.