4

APIを使用してイベントを作成しようとしていますが、招待者のカレンダーで新しいイベントが作成されている間はメールが送信されないことを除いて、ほとんど機能しています。

Webインターフェイスからイベントを作成すると、イベントがプッシュされ、電子メールが送信されます(ただし、通知をまったく受け取らない1つのアカウントを除きますが、現在の問題には関係ありません)。

私がプッシュしようとしているイベントは次のとおりです。

<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とウェブインターフェースを介して作成されたイベントの間に大きな違いは見られません。

編集:認証はAuthSubやOAuthではなくユーザー名/パスワードを介して行われましたが、それが適切であるとは思えません

4

1 に答える 1

3

このスレッドのTrevorのメッセージによると、私は(不十分に文書化された)gCal:sendEventNotificationsプロパティの後にあります(私の例の場合、<entry>ノードを拡張してgCal名前空間を含める必要があるため、例は次のようになります。

<entry xmlns='http://www.w3.org/2005/Atom'
    xmlns:gd='http://schemas.google.com/g/2005'
    xmlns:gCal='http://schemas.google.com/gCal/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>
  <gCal:sendEventNotifications value='true'></gCal:sendEventNotifications>
  <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>
于 2010-06-22T07:23:56.593 に答える