This is an old thread, but I'm updating here in case anyone searches
and finds this post.
Case #1 -- We're working on a way to have the ability to set reminders
based on the user's default
Case #2/3 -- The method used here adds the reminder as an extension to
the entry. It actually should be an extension to the gd:when object
or via the following method:
entry.getReminder().add(reminder);
Happy coding,
-Ryan
On Jan 12, 1:35 am, "dodger" <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > Can you please post the sample code you are using?
>
> Hi
>
> I have the same problem with the Java API
>
> I tried several things:
>
> 1- Noreminder(I hoped that it uses the default configuration of the
> calendar, but nope)
>
> URL postUrl = new
> URL("http://www.google.com/calendar/feeds/default/private/full");
> EventEntry myEntry = new EventEntry();
> myEntry.setTitle(new PlainTextConstruct(txt));
> myEntry.setContent(new PlainTextConstruct(""));
> Person author = new Person(user, null, user);
> myEntry.getAuthors().add(author);
> When eventTimes = new When();
> DateTime timeIni=DateTime(System.currentTimeMillis()+5490000); //+1h
> 31min 30sg
> DateTime timeEnd=new DateTime(System.currentTimeMillis()+7620000);
> //+2h 7 mins
> eventTimes.setStartTime(timeIni);
> eventTimes.setEndTime(timeEnd);
> myEntry.addTime(eventTimes);
> CalendarService myService =new CalendarService("DodgerSystem");
> myService.setUserCredentials(user, pass);
> //Send the request and receive the response:
> EventEntry insertedEntry = myService.insert(postUrl, myEntry);
>
> 2- Add areminderwith 30 mins
> ...
> myEntry.addTime(eventTimes);Reminderreminder=newReminder();reminder.setMinutes(30);
> myEntry.setExtension(reminder);
> ...
>
> 3- Add areminderwith absolute time
> ...
> myEntry.addTime(eventTimes);Reminderreminder=newReminder();reminder.setAbsoluteTime(new
> DateTime(System.currentTimeMillis()+3660000));
> myEntry.setExtension(reminder);
> ...
>
> any ideas? I'm pretty stuck with this!!!
>
> thxs
> -dodger-
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---