Provide some basic methods for working with DW webdav server using
request
:; npm install bitbucket:demandware/dwdav
var dwdav = require('dwdav')(config);
dwdav.get().then(function (res) {
console.log(res);
});
Below are the default values for the config
object.
hostname
:localhost
username
:admin
password
:password
version
:version1
All methods are promise-based, i.e. they return a promise.
get()
post(filePath)
unzip(filePath)
postAndUnzip(filePath)
delete(filePath)
filePath
is the path to a local file to be used.