Right now using the WebDAV bits looks like
var dav = require('dav');
var client = new dav.Client(
new dav.transport.Basic(
new dav.Credentials({
username: 'xxx',
password: 'xxx'
})
),
{
baseUrl: 'https://mail.mozilla.com'
}
);
var req = dav.request.basic({
method: 'PUT',
data: 'BEGIN:VCALENDAR\nEND:VCALENDAR',
etag: '12345'
});
// req instanceof dav.Request
client.send(req, { url: '/calendars/123.ics' })
.then(function(response) {
// response instanceof XMLHttpRequest
});
This is quite verbose and I think there's room for some cleanup.
Right now using the WebDAV bits looks like
This is quite verbose and I think there's room for some cleanup.