Works for me, using a subtle variation of your code below I was able
to create an event with a reminder set to 42 minutes:
var calendarService = new CalendarService("cl");
calendarService.setUserCredentials(username, password);
var entry = new EventEntry();
// Set the title and content of the entry.
entry.Title.Text = "test event";
entry.Content.Content = "test event";
var start = DateTime.Now;
var end = DateTime.Now.AddMinutes(30);
When eventTime = new When(start, end);
entry.Times.Add(eventTime);
var reminder = new Reminder();
reminder.Minutes = 42;
reminder.Method = Reminder.ReminderMethod.alert;
entry.Reminders.Add(reminder);
entry.Status = EventEntry.EventStatus.CONFIRMED;
var uriString =
string.Format("https://www.google.com/calendar/feeds/{0}/private/full/",
username);
var postUri = new Uri(uriString);
var createdEntry = calendarService.Insert(postUri,
entry);
Let us know if it doesn't work for you.
On Fri, May 27, 2011 at 1:38 PM, Hocsinh <[email protected]> wrote:
> Anyone @ google?
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>
--
Johan Euphrosine (proppy)
Developer Programs Engineer
Google Developer Relations
--
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://code.google.com/apis/calendar/community/forum.html