Hi all, i'm trying to create a new event trow a custom application
using the Calendar API for c#. I can access the calendar events, but
when I try to create a new event I get a GDataRequestException (The
remote server returned an error: (500) Internal Server Error.). This is
the code i'm using:
Appointment app = o as Appointment;
FeedQuery query = new FeedQuery();
CalendarService service = new CalendarService("myCalendar");
service.setUserCredentials(usrSet.Name, usrSet.Password);
GDataGAuthRequestFactory factory = (GDataGAuthRequestFactory)
service.RequestFactory;
// temporary measure
factory.MethodOverride = true;
EventEntry ev = new EventEntry();
ev.Title.Text = app.Subject;
When time = new When();
time.StartTime = app.Start;
time.EndTime = app.End;
ev.Times.Add(time);
try
{
AtomEntry insertedEntry = service.Insert(usrSet.RemoteUri,ev);
}
catch (GDataRequestException e1)
{
Console.Write(e1.Response);
}
Can anyone tell me what am i doing wrong?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---