Ok, I figured out what the deal is.

If you set the owner of calendar as either the event.organizer or 
event.attendee (I also required an approval for the event), the event the 
item gets thrown on the default calendar with a "?" for approval and on the 
specified calendar without a "?" mark. If I leave them off the XML file for 
the created event, it gets added to the specified calendar only but marked 
as accepted.

However I do not want it as accepted because the event is submitted from a 
form (a user can request an appointment, and they both have to accept it, 
that way the user has an email to later reject the event since they may not 
have a gmail/googlecalendar account).

I think this is a bug, because it shows that they are not the owner of the 
calendar when they are, because the other user (form submitter) is only an 
attendee and I set the owner as the organizer. Here is part of my XML file 
that gets sent (stuff in caps are PHP variables)

<gd:who rel="http://schemas.google.com/g/2005#event.organizer"; email="' . 
GMAIL_ACCOUNT_ADDRESS . '"><!--owner becomes organizer anyway, but this will 
be added to the specified calendar and as a to-be-approved on the default, 
doesnt matter if you change it to event.attendee either-->';
     <gd:attendeeType 
value="http://schemas.google.com/g/2005#event.required"/>
     <gd:attendeeStatus 
value="http://schemas.google.com/g/2005#event.invited"/>
</gd:who>
  <gd:who rel="http://schemas.google.com/g/2005#event.attendee"; 
valueString="' . USER_NAME_FROM_FORM . '" email="' . USER_EMAIL_FROM_FORM . 
'"><!--appointee-->
     <gd:attendeeType 
value="http://schemas.google.com/g/2005#event.required"/>
     <gd:attendeeStatus 
value="http://schemas.google.com/g/2005#event.invited"/>
</gd:who>


-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to