Hi,

This is how you add attendee to an event with Java client library -

    EventWho organizer = new EventWho();
    organizer.setRel(Who.Rel.EVENT_ORGANIZER);
    organizer.setEmail("[EMAIL PROTECTED]");
    organizer.setAttendeeStatus(Who.AttendeeStatus.EVENT_ACCEPTED);
    organizer.setAttendeeType(Who.AttendeeType.EVENT_REQUIRED);

    EventWho guest1 = new EventWho();
    guest1.setRel(Who.Rel.EVENT_ATTENDEE);
    guest1.setEmail("[EMAIL PROTECTED]");
    guest1.setAttendeeStatus(Who.AttendeeStatus.EVENT_INVITED);
    guest1.setAttendeeType(Who.AttendeeType.EVENT_OPTIONAL);

    entry.addParticipant(organizer);
    entry.addParticipant(guest1);

Hope it helps,
Austin

On Fri, May 9, 2008 at 3:31 PM, Masto <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> i try to create an event and add participant to it. If i only create
> the event without other participant than myself, it works like a
> charm. But, if i add the code below to add the participants, i get a
> com.google.gdata.util.ResourceNotFoundException
>
> That is my code to add participant :
>
> for (Iterator iterator = actionCo.getInterlocutors();
> iterator.hasNext();) {
>     InterlocutorBean interlocutor = (InterlocutorBean)
> iterator.next();
>     EventWho interlocutorAttending = new EventWho();
>
>
> interlocutorAttending.setRel(com.google.gdata.data.extensions.Who.Rel.EVENT_ATTENDEE);
>     interlocutorAttending.setValueString(interlocutor.getEmail());
>
> interlocutorAttending.setAttendeeStatus(AttendeeStatus.EVENT_ACCEPTED);
>
> interlocutorAttending.setAttendeeType(AttendeeType.EVENT_REQUIRED);
>     eventEntry.getParticipants().add(interlocutorAttending);
> }
>
> I get :
>
> com.google.gdata.util.ResourceNotFoundException: Not Found
> <HTML>
> <HEAD>
> <TITLE>Not Found</TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> <H1>Not Found</H1>
> <H2>Error 404</H2>
> </BODY>
> </HTML>
>
>
> If i remove the code above, there is no problem in creating the event.
>
> Did i miss something ?
>
> Thanks,
>
> Thomas
> >
>

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