On Wed, Oct 22, 2008 at 8:57 AM, jundol <[EMAIL PROTECTED]> wrote:
>
> I want to change event privacy option, for example, from 'private' to
> 'public' with Google Calendar APIs.
Jundol,
This is determined by the gd:visibility element, documented here:
http://code.google.com/apis/gdata/elements.html#gdVisibility
When you retrieve events from the server, it will look something like this:
<entry>
<id>http://www.google.com/calendar/feeds/trevorjohns%40google.com/private/full/...</id>
<published>...</published>
<updated>...</updated>
<category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/g/2005#event"/>
<title type="text">My Event</title>
<content type="text">...</content>
<link rel="alternate" type="text/html"
href="http://www.google.com/calendar/hosted/google.com/event?eid=..."
title="alternate"/>
<link rel="self" type="application/atom+xml"
href="http://www.google.com/calendar/feeds/trevorjohns%40google.com/private/full/..."/>
<link rel="edit" type="application/atom+xml"
href="http://www.google.com/calendar/feeds/trevorjohns%40google.com/private/full/.../..."/>
<author>
<name>Me</name>
<email>[EMAIL PROTECTED]</email>
</author>
<gd:when startTime="2008-10-28T13:00:00.000-07:00"
endTime="2008-10-28T14:00:00.000-07:00"/>
<gd:eventStatus value="http://schemas.google.com/g/2005#event.confirmed"/>
<gd:visibility value="http://schemas.google.com/g/2005#event.default"/>
<gd:transparency value="http://schemas.google.com/g/2005#event.opaque"/>
...
</entry>
If you want the event to be explicitly public, set gd:[EMAIL PROTECTED] to:
http://schemas.google.com/g/2005#event.public
If you want it to be explicity private, set it to:
http://schemas.google.com/g/2005#event.private
--
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
-~----------~----~----~----~------~----~------~--~---