Hello Jane,

Thanks,now I am able to send the email using calendar api,to the
participants added as shown by you.
But in the code I am trying to get the status of  participants whether they
have accepted or denied the invitation,even though I participant accepts the
invitation and getting reflected on calendar(as Yes 1) but in code getting
the status as EVENT_INVITED rather expected is EVENT_ACCEPTED .Can you help
to resolve this?

code-
((EventWho)(CalendarEventEntry.getParticipents
().get(0)).getAttendeeStatus();

Thanks and Regards
Jessica


On 8/7/07, Lane LiaBraaten (Google) <[EMAIL PROTECTED]> wrote:
>
>
> Hi Jessica,
>
> The CalendarEventEntry class has a property called sendNotifications
> that is set to false by default, but if you set it to true you will
> get the email notifications you're looking for.  Try this:
>
> CalendarEventEntry myEntry = new CalendarEventEntry();
> EventWho guest=new EventWho();
>
> guest.setEmail("[EMAIL PROTECTED]");
>
> guest.setValueString("John Doe");
> myEntry.addParticipant(guest);
> myEntry.setSendEventNotifications(true);
>
> Note that you'll need to use CalendarEventEntry (instead of
> EventEntry) and EventWho (instead of Who).
>
> Cheers,
> Lane
>
>
> On Aug 6, 12:12 am, "Jessica Loveday" <[EMAIL PROTECTED]>
> wrote:
> > ---------- Forwarded message ----------
> > From: Jessica Loveday <[EMAIL PROTECTED]>
> > Date: Jul 25, 2007 12:43 PM
> > Subject: How to add email guest for event using google calendar api and
> send
> > email
> > To: [email protected]
> > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> >
> > Hi,
> >
> > I am trying to add email guest and send email invitation,but only event
> gets
> > created with the email address added in who list but not receiving
> actual
> > email as invitation.But on canceling the same event manually from
> > calendar,receiving the cancellation event email.
> > The code is in attached gmail.java file.
> >
> > Whether there is any method to get free slots from calendar?
> >
> > thanks,
> > jessica
> >
> >
> >
> >  gmail.java
> > 2KDownload
>
>
> >
>

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