google-calendar-api

Creating events using the Google Calendar API and Service Account

偶尔善良 提交于 2020-08-10 22:50:04
问题 So I have setup my service account with domain wide delegation as described in this post Perform G Suite Domain-Wide Delegation of Authorit. In G Suite Admin Console I have authorized the service account to use the OAuth 2.0 scope: https://www.googleapis.com/auth/calendar. Every time I try to create an event I end up with this error GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "calendar", "message" : "Service accounts cannot invite attendees without

Creating events using the Google Calendar API and Service Account

こ雲淡風輕ζ 提交于 2020-08-10 22:48:52
问题 So I have setup my service account with domain wide delegation as described in this post Perform G Suite Domain-Wide Delegation of Authorit. In G Suite Admin Console I have authorized the service account to use the OAuth 2.0 scope: https://www.googleapis.com/auth/calendar. Every time I try to create an event I end up with this error GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "calendar", "message" : "Service accounts cannot invite attendees without

Google Calendar API error - “API key not valid. Please pass a valid API key.”,

℡╲_俬逩灬. 提交于 2020-08-10 05:49:15
问题 I've started getting the error from google rest api since yesterday { "error": { "code": 400, "message": "API key not valid. Please pass a valid API key.", "errors": [ { "message": "API key not valid. Please pass a valid API key.", "domain": "global", "reason": "badRequest" } ], "status": "INVALID_ARGUMENT" } } API endpoint is: https://www.googleapis.com/calendar/v3/calendars/[CALENDAR_ID]/events?timeMax=2020-06-22T23%3A59%3A59.000%2B06%3A00&timeMin=2020-06-22T00%3A00%3A00.000%2B06%3A00&key=