How can I make an event created through Google Calendar's API send an invitation email?

Posted by Cebjyre on Stack Overflow See other posts from Stack Overflow or by Cebjyre
Published on 2010-05-17T03:36:29Z Indexed on 2010/05/17 3:40 UTC
Read the original article Hit count: 253

I'm trying to create an event through the API and it is mostly working, with the exception that while the new events are being created in the invitees calendars, no emails are being sent.

Creating the event from the web interface is pushing the event through, as well as sending the email (except one account that doesn't get any notifications at all, but that's not relevant to my current problem).

The event I am trying to push in is:

<entry xmlns='http://www.w3.org/2005/Atom'
    xmlns:gd='http://schemas.google.com/g/2005'>
  <category scheme='http://schemas.google.com/g/2005#kind'
    term='http://schemas.google.com/g/2005#event'></category>
  <title type='text'>test event</title>
  <content type='text'>content.</content>
  <gd:transparency
    value='http://schemas.google.com/g/2005#event.opaque'>
  </gd:transparency>
  <gd:eventStatus
    value='http://schemas.google.com/g/2005#event.confirmed'>
  </gd:eventStatus>
  <gd:where valueString='somewhere'></gd:where>
  <gd:who email="[redacted]" rel='http://schemas.google.com/g/2005#event.attendee' valueString='Me'><gd:attendeeStatus value='http://schemas.google.com/g/2005#event.invited'/></gd:who>
  <gd:who email="[redacted again]" rel='http://schemas.google.com/g/2005#event.organizer' valueString='Also Me'><gd:attendeeStatus value='http://schemas.google.com/g/2005#event.accepted'/></gd:who>
  <gd:when startTime='2010-05-18T15:30:00.000+10:00'
    endTime='2010-05-18T16:00:00.000+10:00'></gd:when>
</entry>

And when I request event lists I can't see any large difference between events created through the API and through the web interface.

© Stack Overflow or respective owner

Related posts about google-calendar-api

Related posts about google-calendar