XPages Extension Library通过Data Calendar Service API创建具有客房预订的活动 [英] XPages Extension Library Create an event with room reservation via Data Calendar Service API
问题描述
我想尝试通过Xpages日历服务API通过预订房间创建活动,其中包含有效 JSON对象。
我使用的请求的详细信息:
URL: [server-path] /mail/administ.nsf/api/calendar/events
操作:POST
标题:Content-Type:application / json
JSON正文:
{
events :
[
{
summary:会议1通过API调用添加,
location:会议室2 /网站@ domain,
description:Test description,
CalendarDateTime:{
date:2014-02-11,
time:17:00:00,
utc:true
},
start:{
date:2014-02-11,
time:17 :00:00,
utc:true
},
end:{
date:2014-02-11,
time:17:30:00,
utc:true
},
class:public,
transparency ,
序列:0,
x-lotus-noticetype:I,
attendees:[
{
displayName: Administrator @ domain,
email:Administrator @ domain,
role:chair,
status:accepted
},
{
displayName:testing,
email:testing @ domain
}
],
organiser :{
displayName:Administrator @ domain,
email:Administrator @ domain
},
x-lotus-room:{
data:testing / TestSite @ domain
}
}
]
}
事件已创建,但房间未与事件相关联。
JSON正文是从使用Lotus Notes创建并从 mail / administr.nsf / api / calendar / events
api调用。
我已经在互联网上搜索了一个如何进行api电话创建一个事件与房间注册/预订,但未能获得任何信息的示例。 p>
注意:
Domino / LotusNotes / XPages扩展库对已配置好(希望)。
预留数据库正常,我能够与Lotus Client建立会议,并使用api调用来检索它们。
我已经通过IBM Xpages支持找到了解决这个问题的方法 page 。
要将会议室分配给会议,您必须将会议室电子邮件地址添加到与会者列表中:
attendes:[
{
role:req-participant,
status:needs-action,
rsvp:true,
email:administrator @ domain
},
{
role:req-participant,
userType:room b $ bstatus:accepted,
rsvp:true,
email:Conference_Room1 @ domain
}
] b $ b
I'm trying to create an event with a room reservation via the Xpages Calendar Services APIs, with a valid JSON object.
Details of the request I am using :
URL : [server-path]/mail/administ.nsf/api/calendar/events
Operation : POST
Headers : Content-Type : application/json
JSON Body :
{
"events":
[
{
"summary": "Meeting 1 Added via API Call",
"location": "Conference Room 2/Site@domain",
"description": "Test description",
"CalendarDateTime":{
"date":"2014-02-11",
"time":"17:00:00",
"utc":true
},
"start": {
"date":"2014-02-11",
"time":"17:00:00",
"utc":true
},
"end": {
"date":"2014-02-11",
"time":"17:30:00",
"utc":true
},
"class":"public",
"transparency":"opaque",
"sequence":0,
"x-lotus-noticetype":"I",
"attendees": [
{
"displayName":"Administrator@domain",
"email":"Administrator@domain",
"role":"chair",
"status":"accepted"
},
{
"displayName":"testing",
"email":"testing@domain"
}
],
"organizer": {
"displayName":"Administrator@domain",
"email":"Administrator@domain"
},
"x-lotus-room": {
"data": "testing/TestSite@domain"
}
}
]
}
The event is created but the room is not associated to the event.
The JSON body is copied from an event which was created with Lotus Notes and retrieved from the mail/administ.nsf/api/calendar/events
api call.
I have search all over the internet for an example of how to make an api call to create an event with room registration/reservation but failed to get any info.
Notes :
The Domino/LotusNotes/XPages Extension Library pair is configured OK (hopefully).
The Reservation DB is OK, I am able to create meetings with the Lotus Client and retrieve them using api calls.
I have managed to find a solution to this problem via the IBM Xpages support page.
In order to assign a room to a meeting you have to add the room email address to the list of attendees:
"attendees": [
{
"role": "req-participant",
"status": "needs-action",
"rsvp": true,
"email": "administrator@domain"
},
{
"role": "req-participant",
"userType": "room",
"status": "accepted",
"rsvp": true,
"email": "Conference_Room1@domain"
}
],
这篇关于XPages Extension Library通过Data Calendar Service API创建具有客房预订的活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!