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

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

                                                                                
                                                        DateTime startTime = 
DateTime.parseDateTime("2007-07-25T14:00:00");
                                                                                
                                                        DateTime endTime = 
DateTime.parseDateTime("2007-07-25T14:30:00");
                                                                                
                                                        Who guest=new Who();
                                                                                
                                                        guest.setEmail("[EMAIL 
PROTECTED]");
                                                                                
                                                        
guest.setValueString("[EMAIL PROTECTED]");
                                                                                
                                                        
//guest.setAttendeeStatus("EVENT_ACCEPTED");
                                                                                
                                                        Who guest1=new Who();
                                                                                
                                                        guest1.setEmail("[EMAIL 
PROTECTED]");
                                                                                
                                                        Who guest2=new Who();
                                                                                
                                                        guest2.setEmail("[EMAIL 
PROTECTED]");
                                                                                
                                                //      
guest1.setAttendeeStatus("EVENT_ACCEPTED");
                                                                                
                                                        When eventTimes = new 
When(); 
                                                                                
                                                        
eventTimes.setStartTime(startTime);
                                                                                
                                                        
eventTimes.setEndTime(endTime);
                                                                                
                                                        
myEntry.addTime(eventTimes);
                                                                                
                                                        Where eventWhere = new 
Where();
                                                                                
                                                        
eventWhere.setValueString("office");
                                                                                
                                                        
myEntry.addLocation(eventWhere);
                                                                                
                                                        
myEntry.addParticipant(guest);
                                                                                
                                                        
myEntry.addParticipant(guest1);   
                                                                                
                                                        
myEntry.addParticipant(guest2);         
                                                                                
                                                        String status1= 
guest.getAttendeeStatus(); 
                                                                                
                                                        String status2= 
guest1.getAttendeeStatus(); 
                                                                                
                                                        
System.out.println("....email status..."+status1+"..."+status2);
                                                                                
                                  // Send the request and receive the response:
                                                                                
                                                        EventEntry 
insertedEntry = (EventEntry)myService.insert(feedUrl, myEntry);
                                                                                
                                                        
System.out.println("Event Added Successfully.");

Reply via email to