google-calendar-api

Google Calendars API - Listener for new calendar events or updates to existing events?

扶醉桌前 提交于 2021-01-29 09:17:46
问题 I have a Python script that will take all of the events from a Google Calendar, format the text and send a post request to a website, which works fine. Currently, I would have to open it each time an event is added or changed. I am wondering how can I setup a listener so that the function will fire whenever there are new calendar events or updates to existing ones? I have looked into the documentation but have not been able to find any good solution. Thank you! 回答1: You should make use of the

Creating calendar event with attendees

…衆ロ難τιáo~ 提交于 2021-01-28 09:41:57
问题 I tried to create a google calendar event with attendees, and it didn't work (threw an error of domain wide delegation). I activated the domain wide delegation and rerun the script, ending with the same error, Which lead me to wonder, does the Domain Wide Delegation require a G-Suite account? I'm using a service account Without the Attendees the scripts works fine The service account has a calendar shared to it, and the service account has modify permissions to this calendar (events without

How can I set the time zone as null in Google Calendar Integration?

岁酱吖の 提交于 2021-01-28 07:01:23
问题 I have written a code in ASP.NET MVC that integrates with google calendar API and sets an event into the user's calendar. My Code is : public static string CreateEvent(CalendarEventViewModel model) { string Id = ""; // List events. Event newEvent = new Event() { Summary = model.Summary, Location = model.Location, Description = model.Description, Start = new EventDateTime() { DateTime = DateTime.Parse(model.StartDateTime), TimeZone = "America/Los_Angeles", }, End = new EventDateTime() {

Calendar returning duplicate Holiday Events

怎甘沉沦 提交于 2021-01-28 04:17:55
问题 I have found, that when has two accounts linked to their device, and both accounts are syncing their calendars, and both accounts are setup to show the Google Holiday calendar, then the `CalendarContract.Instances` is returning each holiday twice, once for each calendar. Therefore you will see in such cases, that most Calendar apps, other than Google Calendar, will show the Holiday twice, once per calendar. I looked at the underlying Sqlite database, and in the `Calendar` table, there is a

Google Apps Script: How to check if a calendar event has been marked as deleted manually

风格不统一 提交于 2021-01-27 21:18:19
问题 I've written a Google Apps Script which adds events kept in a spreadsheet to a google calendar. Each event stores the calendar event's ID so that it can update it if the event in the spreadsheet gets modified. The event can still be deleted manually in the calendar so I would like the script to detect this and recreate the event. Unfortunately, I cannot simply check for null when calling getEventById(...) on a calendar object because even when deleted, this function seems to be returning a

Google Calendar API: “You need to have writer access to this calendar.”

两盒软妹~` 提交于 2021-01-27 19:26:09
问题 I'm using the Google Calendar API in my Rails 5.2.3 app and trying to create events on a Google Calendar within my G Suite domain. I'm already able to read the calendar and list events. When I try to insert an event, I get the error "requiredAccessLevel: You need to have writer access to this calendar." As this is for an internal application, I have registered a service account in the Google API console and have verified that the account is able to read calendars and events. In the G Suite

Google Calendar API getting 'Cannot read property 'signIn' of null'

空扰寡人 提交于 2021-01-27 14:10:28
问题 I'm trying to use Google's Calendar API to get info on specific calendar. I keep getting this error Cannot read property 'signIn' of null . I'm using the example online here https://developers.google.com/google-apps/calendar/quickstart/js. Any idea why this is happening? And can someone give me a more simple way to get calendar data? Basically I want to know which rooms in my calendar feed are free to book. Can I do this using the calendar API? const CLIENT_ID = '418414126140

Impersonate user with google calendar API oauth2 service account (node.js)

自闭症网瘾萝莉.ら 提交于 2021-01-27 06:36:48
问题 I am trying to use a server to server authentication through the google calendar API. In the documentation they mention you can impersonate a user. I have added owner permissions to the account I want to impersonate and made sure the domain-wide delegation is enabled. From everything I have read the 'user@example' should specify the impersonater but it does not work. I have all the functions of creating events etc working but I can't get it to be from an email other than the google randomly

Google calendar add by URL requirements

孤街浪徒 提交于 2021-01-27 03:55:21
问题 I am trying to add a Google calendar through the add by URL method. I receive a generic error of "Failed to add imported calendar at 'my URL' for 'my username' " from Google calendar. The URL I'm adding to Google calls a Restful service that sends back a .ics file. I am able to validate my URL here: http://severinghaus.org/projects/icv/ and here: http://icalvalid.cloudapp.net/ What is it that Google calendar is expecting to receive that I am missing? These are the contents of the .ics file I

Why google Calendar event not being created with stored access token and refresh token in php

瘦欲@ 提交于 2021-01-05 07:41:36
问题 I have successfully integrated google OAuth 2.0 with Calendar permissions and I am storing access token and refresh token in the database, after that fetch both token. do not know what wrong I am doing the Calendar event not being created. <?php include($_SERVER["DOCUMENT_ROOT"]."/config.php"); include($_SERVER["DOCUMENT_ROOT"]."/functions.php"); require 'vendor/autoload.php'; function getClient($useremail) { $client = new Google_Client(); $client->setApplicationName('Google Calendar API PHP