我已经搜索了每个方node.js
https://github.com/jasonjoh/node-outlook或https://www.npmjs.coms.com/package/package/node-utlook看起来像您需要的。该库提供了 Outlook Mail ,日历的轻量级实现,以及联系人 apis。例代码创建事件。
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);
}
});
https://github.com/jasonjoh/node-outlook看起来像您需要的。它需要Cordova应用程序的Microsoft Office 365 API客户库库,但这是非常预期的。