我正在尝试通过API创建一个事件,它主要是工作,但新的事件是在受邀者日历中创建的,但没有发送电子邮件。
从网络界面创建活动正在推动活动,并发送电子邮件(除了一个根本没有收到任何通知的帐户,但这与我当前的问题无关)。
我想要推进的事件是:
<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>
当我请求事件列表时,我看不到通过API和Web界面创建的事件之间的任何巨大差异。
编辑:身份验证是通过用户名/密码而不是AuthSub或OAuth,但我怀疑这是否相关
答案 0 :(得分:3)
根据Trevor's message in this thread我在({1}}属性(在我的示例中需要扩展gCal:sendEventNotifications
节点以包含gCal命名空间(在我的示例中)之后,所以例子变成:
<entry>