我已经搜索了所有内容,但找不到在 Outlook-calender 中创建事件的适当资源。请有人提供使用 Node.js 创建 Outlook-calender 的代码
问问题
5136 次
2 回答
3
https://github.com/jasonjoh/node-outlook或https://www.npmjs.com/package/node-outlook看起来像你需要的。此库提供Outlook Mail、Calendar和Contacts API的轻量级实现。
创建事件的示例代码。
var outlook = require('node-outlook');
var newEvent = {
"Subject": "Discuss the Calendar REST API",
"Body": {
"ContentType": "HTML",
"Content": "I think it will meet our requirements!"
},
};
let createEventParameters = {
token: ['access token will come here'],
event: newEvent
};
outlook.calendar.createEvent(createEventParameters, function (error, event) {
if(error) {
console.log(error);
} else {
console.log(event);
}
});
于 2018-01-05T08:06:54.617 回答
0
https://github.com/jasonjoh/node-outlook看起来像你需要的。它需要用于 Cordova 应用程序的 Microsoft Office 365 API 客户端库,但这是意料之中的。
于 2017-12-20T10:02:50.360 回答