Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to propagate reminders for a google calendar event created via the gdata python api?

I'm working on a python app that uses the gdata to programmatically create and mantain a calendar for groups of people. Everything works OK, except for the reminders in shared calendars.

Some context: when you create a new project, a google calendar is created for it under your name. And when you invite collaborators, that same calendar is shared with them. That way, when you create tasks everybody can see them in their calendars. All of this is implemented and works fine.

Now, I wanted people to get reminded a day before about pending tasks. So I did this:

event = CalendarEventEntry()
#more stuff with the event, such as setting start and end times...
for w in event.when:
    w.reminder.append(Reminder(days=1, method="email"))

The thing is, the reminder is only being sent to the owner of the calendar, not the other people with whom it's shared.

I've found info about google calendar stating that it should be done manually in each user's settings, which is a solution I don't like, as the whole point of my app is updating your calendar programmatically; I've also read that it could be solved by creating groups and using group calendars, but that would mean (a) my existing users wouldn't be benefited and (b) probably significant overhead, which I would happily undertake if there's no decent solution for this particular issue.

like image 517
lfborjas Avatar asked Nov 20 '10 01:11

lfborjas


1 Answers

Reminders are specific to each users that is why when you create or update an event with specific reminder settings, those will be visible to the user authorizing the request.

Does your applications have the other users' credentials? If this is the case, you could send the same update request using those credentials. Unfortunately, that will add the overhead of sending a request for every user.

like image 164
Alain Avatar answered Oct 01 '22 19:10

Alain