On 9 Feb., 16:28, jazKular <[email protected]> wrote:
> The user will certainly have permission to write to his/her calendar.
> So the best way would be for an entry page to be opened and then the
> user can confirm the event?

For a single event, yes. It's easy to program, the user gets a chance
to check everything, perhaps enter a additional note or an extended
title, and google would have handled all the access rights.

> Is there anyway that multiple entries can be inserted at once? In my
> gadget, the user is presented with a drop down menu of entries, and he
> or she is able to select multiple entries and then send them all at
> once to the calendar.

OK. thats possible too. But in order to write to your users calendar,
YOU need to have write access to your users calendar. If your gagdet
is running inside the iGoogle-Container (not the syndication
container) the oauth-proxy allows your gadget to do stuff with the
users rights. Googling for "oauth proxy" should lead you to a few
examples on how to access your users calendar from your gadget. It
mainly consists of guiding your user through the process of giving
your gadget access to his calendar data. Then you can use the gdata
api to make calls to google calendar to du stuff like the user would
be able to. (entering an event becomes sending an http-request with an
attached xml-structure to the calendar through the oauth proxy)

I could show you my sample gadgets that use oauth for read and write
access to the guest lists of events or that diaplays contact
information from the users adressbook. (tahst based on the official
oauth-proxa example) but as these were my first steps into that field,
they are poorly documented.

> Would it be best to store these in an array and import them one by one
> or is there another more efficient and effective way to do it?

Not sure, but IIRC, you can send a batch of events in one request.

> Also, if there is a clash (i.e. a entry overlapping) will Google
> Calendar be able to provide such a check?

No. You could do it yourself, querying free/busy information first
(you already asked for write access, so you have read access included)

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en.

Reply via email to