Domino 9.x日历服务创建会议

时间:2015-11-25 08:03:30

标签: rest calendar lotus-domino

我一直在关注本指南以使用Domino 9.0.1

Domino Calendar services

我正在使用JSON并且POST命令有效但创建了一个约会,我想要做的是创建一个会议。我已尝试设置其他字段,例如event [' x-lotus-appttype']。data或event.AppointmentType = 3但我仍然可以预约。

JSON我发送

{
  "events": [
    {
      "summary":"Meeting 1",
      "location":"Location 1",
      "start": {
        "date":"2013-12-01",
        "time":"13:00:00",
        "utc":true
      },
      "end": {
        "date":"2013-12-01",
        "time":"14:00:00",
        "utc":true
      }
    }
  ]
}

创建会议的正确JSON格式是什么?

1 个答案:

答案 0 :(得分:2)

请查看以下文档:Event with attendees represented in JSON format

  

示例4.与与会者和时区阵列的事件:

{
  "x-lotus-charset": {
    "data": "UTF-8"
  },
  "timezones": [
    {
      "tzid": "Eastern",
      "standard": {
        "start": {
          "date": "1950-11-05",
          "time": "02:00:00"
        },
        "offsetFrom": "-0400",
        "offsetTo": "-0500",
        "recurrenceRule": "FREQ=YEARLY;BYMONTH=11;BYDAY=1SU;BYHOUR=2;BYMINUTE=0"
      },
      "daylight": {
        "start": {
          "date": "1950-03-12",
          "time": "02:00:00"
        },
        "offsetFrom": "-0500",
        "offsetTo": "-0400",
        "recurrenceRule": "FREQ=YEARLY;BYMONTH=3;BYDAY=2SU;BYHOUR=2;BYMINUTE=0"
      }
    }
  ],
  "events": [
    {
      "href": "/mail/dlawson.nsf/api/calendar/events/DB7E0BAC21EC322A85257BD200756E26-Lotus_Notes_Generated",
      "id": "DB7E0BAC21EC322A85257BD200756E26-Lotus_Notes_Generated",
      "summary": "Staff meeting",
      "location": "Ray's office",
      "description": "Please email your status update 24 hours before the meeting.",
      "start": {
        "date": "2013-09-12",
        "time": "09:00:00",
        "tzid": "Eastern"
      },
      "end": {
        "date": "2013-09-12",
        "time": "10:00:00",
        "tzid": "Eastern"
      },
      "class": "public",
      "transparency": "opaque",
      "sequence": 0,
      "last-modified": "20130825T212457Z",
      "attendees": [
        {
          "role": "chair",
          "status": "accepted",
          "rsvp": false,
          "displayName": "Duke Lawson/Peaks",
          "email": "DukeLawson@swg.usma.ibm.com"
        },
        {
          "role": "req-participant",
          "status": "needs-action",
          "rsvp": true,
          "displayName": "Dean Melnyk/Peaks",
          "email": "DeanMelnyk@swg.usma.ibm.com"
        },
        {
          "role": "req-participant",
          "status": "needs-action",
          "rsvp": true,
          "displayName": "Raymond Chan/Peaks",
          "email": "RaymondChan@swg.usma.ibm.com"
        }
      ],
      "organizer": {
        "displayName": "Duke Lawson/Peaks",
        "email": "DukeLawson@swg.usma.ibm.com"
      },
      "x-lotus-broadcast": {
        "data": "FALSE"
      },
      "x-lotus-notesversion": {
        "data": "2"
      },
      "x-lotus-appttype": {
        "data": "3"
      }
    }
  ]
}

我希望这有助于:)