On Mon, Nov 10, 2008 at 10:40 PM, Oliver <[email protected]> wrote:
>
> Hello,
>
> I am the developer of a program that allows users to create work
> schedules for their workers. My app is currently set up so that
> workers can go to a special address on my website and see their
> schedules there. Each worker's schedule is different.
>
> I would like to give workers the capability to have their work
> schedules appear in their google calendar. I would like for the work
> schedules to stay up-to-date automatically. I other words, I would
> like for the workers to enter their credentials once, and have their
> calendar updated automatically every time the schedule changes.
>
> I know I can program this via the API but it's a question of how and
> what problems I will run into.
>
> I can see two ways of doing this with the API:
> 1) create a master google account for my company, and create a new
> google calendar in that account for each worker, and share that
> calendar privately with the user.
> 2) access each worker's account and create and update a calendar on
> their account.
>
> There could be up to several thousand workers, each with 100~300
> events per year. Schedules are usually made one month at a time, and
> are updated a handful of times for each month. In other words I'm
> looking at about 1 million event updates per year.
>
> My questions are:
> A. Has anybody already done something like this? What are your
> recommendations?
> B. Will I run into quota limits at some point?

Possibly, depending on how it's implemented.

Quotas are primarily set on a per-user basis (there are others, but
this is the big one), so for this reason I recommend logging into the
user's account and updating their calendar directly.

> C. Are there  other ways of doing this I haven't thought of?

You could also send invitations as ICS files to the workers via email.
If they us GMail, then these will be imported into Google Calendar.
Using the API is almost certainly easier.

A third option is to publish an ICS file via HTTP with the worker's
calendar. Unfortunately, there's no way to directly add this to their
account, but it can be done manually. Again, the web interface is
almost certainly easier.

> D. Method 1 implies I will have up to thousands of calendars in one
> google account. Will google let me do this?

Generally, no. You'll hit a quota limit very quickly that way.

> E. Method 2 means the worker "owns" his calendar, which means they
> might accidentally alter the calendar (like add an event) which will
> make updating it a pain... :/

Unfortunately that's a distinct possibility.

However, you can use event UIDs and last-updated times to check and
see if a given event has changed, and correct it accordingly.

Let us know if you have any other questions.

-- 
Trevor Johns

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to