Okay, I have an app that I've written that integrates with the Google
Calendar. It works fine when connecting to a standard Google Calendar
associated with a gmail account. However, when I try to connect to my
calendar that is part of Google Apps, I get the following error:
"This feed is read-only
InnerException {"The remote server returned an error: (403)
Forbidden."} System.Exception {System.Net.WebException}
Here is my code:
Google.GData.Calendar.EventQuery tmpQuery = new
Google.GData.Calendar.EventQuery();
Google.GData.Calendar.CalendarService tmpService = new
Google.GData.Calendar.CalendarService("MyService");
tmpService.setUserCredentials(CalendarUsername,
CalendarPassword);
Uri tmpUri = new Uri(CalendarURI);
Google.GData.Calendar.EventEntry tmpEntry = new
Google.GData.Calendar.EventEntry();
tmpEntry.Title.Text = "My Subject";
Google.GData.Extensions.When tmpTimes = new
Google.GData.Extensions.When(StartTime, EndTime);
tmpEntry.Times.Add(tmpTimes);
try
{
Google.GData.Client.AtomEntry tmpAtomEntry =
tmpService.Insert(tmpUri, tmpEntry);
}
catch (Exception ex)
{
tmpSuccess = false;
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---