On Mon, Oct 27, 2008 at 2:15 PM, Java Coder <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Any help here will be greatly appreciated, we are in the midst of
> implementing a project involving Google calendar and any response will
> help us greatly.
>
> We have created of couple of secondary calendars using the api and at
> the time of creation no AccessLevelProperty is specified. The idea is
> that we want only the owner to have full access and "everyone else "
> to have read only access.
>
> Until today, this was working fine and we were able to see the
> embedded calendars in the web application.
> But today we are getting the above message consistently in the web
> application.(Please note that we have not done any code change, what
> so ever).
>
> Can some please guide us(preferably java)
> 1. Create a calendar, where everyone has read only access, so that
> when we embed the calendar in a webapp, we dont see the above message.
>
>
> Here is the code snippet;
>
> URL owncalendarsFeedUrl = new URL(METAFEED_URL_BASE + userName +
> OWNCALENDARS_FEED_URL_SUFFIX);
>
> // Create the calendar
> CalendarEntry calendar = new CalendarEntry();
> calendar.setTitle(new PlainTextConstruct(title));
> calendar.setSummary(new PlainTextConstruct(
> summary));
> calendar.setHidden(HiddenProperty.FALSE);
> calendar.setCanEdit(true);
>
> TimeZoneProperty timeZoneProperty = new
> TimeZoneProperty("EST");
> calendar.setTimeZone(timeZoneProperty);
> // Insert the calendar
> CalendarEntry calendarEntry =
> service.insert(owncalendarsFeedUrl, calendar);
> calendarEntry.setAccessLevel(AccessLevelProperty.READ);
> calendarEntry.setTimeZone(new
> TimeZoneProperty(timeZone.getID()));
ajayanthilal,
Are you continuing to see this error?
--
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
-~----------~----~----~----~------~----~------~--~---