I try to add an event to a public calendar (not mine) with JavaScript,
but i get a "This feed is read-only" error. Is it not possible to add
an event to a public cal? Could i fix this problem, if i add the
calendar to my account and auth with SubAuth?

I use the example Code from google

var calendarService2 = new google.gdata.calendar.CalendarService
('eventCottbus-eventCal-0.1');
// This feed is read-only error for both of the following feedUri's
var feedUri = 'http://www.google.com/calendar/feeds/<account>/public/
basic';
var feedUri = 'http://www.google.com/calendar/feeds/<account>/private-
<hash>/full';

var entry = new google.gdata.calendar.CalendarEventEntry();
entry.setTitle(google.gdata.Text.create('JS-Client: insert event 1'));
var when = new google.gdata.When();

var startTime = google.gdata.DateTime.fromIso8601
("2009-02-01T09:00:00.000+01:00");
var endTime = google.gdata.DateTime.fromIso8601
("2009-02-01T10:00:00.000+01:00");
when.setStartTime(startTime);
when.setEndTime(endTime);

entry.addTime(when);

calendarService2.insertEntry(feedUri, entry, callback,
    handleError, google.gdata.calendar.CalendarEventEntry);

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