Skip to content

weareu/exchange-calendar-list

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exchange-calendar-list

Node.js module to read entries from an Exchange calendar via EWS using promises.

This version uses node soap and xpath with xmldom to more easily navigate EWS soap messages and has been tested with Office365.

exchange-calendar-list uses node-promises and promises could be added to the chain but, the continued use of node-promises is not required.

To use:

The following example will return all the calendar entries for the past 3 months including the future 3 months.

var exchList = require('exchange-calendar-list')();

var url = 'https://outlook.office365.com/EWS/Exchange.asmx';
var username = 'someaddress@someplace.com';
var password = 'XXXXXXX';
var start = new Date().addMonth(-3);
var end = new Date().addMonth(3);

exchList.request({ url: url, username: username, password:password, start: start, end : end })
.then(function(items) {
  //each item contains 
  //{
  //    itemId: 'xx', changeKey: 'xx', type: 'xx', 
  //    subject: 'some subject', location: 'some place',
  //    start: 'startdate', end: 'enddate', allDay: [true or false],
  //    body: 'some extended body as text only',
  //    organizer: {name: 'organizers name', email: 'organizers email'},
  //    requiredAttendees: [{name: 'name', email: 'email@something.com'}],
  //    optionalAttendees: [{name: 'name', email: 'email@something.com'}]
  //}
}, function(err) {
  if(err) throw err;
});

About

Node.js module to read entries from an Exchange calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%