I tried to use setAbsoluteTime of the Reminder class to send reminder
to all the attendees whenever an event is being created. But it always
throws an exception. Following is the code snippet I'm trying to use

            Method methodType = Method.EMAIL;
            Reminder reminder = new Reminder();
            GregorianCalendar cal = new GregorianCalendar();
            cal.add(Calendar.SECOND, 60);
            reminder.setAbsoluteTime(new
DateTime(cal.getTimeInMillis()));
            reminder.setMethod(methodType);

            myEvent.getReminder().add(reminder);


the above line of code throws the following exception

com.google.gdata.util.InvalidEntryException: Bad Request
Illegal gd:reminder method or time  specified: 16920 seconds


Is there anything wrong in the above code. My purpose is to send the
invitation mail to the attendees at the time I create the event. How
to do that? please help.




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