Hi,

I have a list of calendars shared by other gmail account users. I am
able to retrieve events from the shared calendars. I am able to create
and delete events from my friend's calendar via the calendar interface
provided by google. However, when I tried to create a new calendar
entry into my friend's calendar using the java codes below, I got this
error.

com.google.gdata.util.ServiceForbiddenException: Forbidden
This feed is read-only

However, I am already granted with owner(manage and change events)
rights by my friend (creator of the accessed calendar).


Below is part of the code where I tried to post a new entry into my
friend's shared calendar. Please kindly advise. Many thanks

example:
My calendar = [EMAIL PROTECTED]
Calendar friend has shared = [EMAIL PROTECTED]

    URL postURL = new URL("http://www.google.com/calendar/feeds/
[EMAIL PROTECTED]/private/full");
    CalendarEventEntry myEntry = new CalendarEventEntry();

    myEntry.setTitle(new PlainTextConstruct(ApptTitle));
    myEntry.setContent(new PlainTextConstruct(Content));

   DateTime startTime = DateTime.parseDateTime(SDate);
    DateTime endTime = DateTime.parseDateTime(EDate);

    When eventTimes = new When();
    eventTimes.setStartTime(startTime);
    eventTimes.setEndTime(endTime);
    myEntry.addTime(eventTimes);

     myService.setUserCredentials(userId, password);
    CalendarEventEntry insertedEntry = myService.insert(postURL,
myEntry);


--~--~---------~--~----~------------~-------~--~----~
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