Node.js
Node.js
Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var mailman = new chilkat.MailMan();
// ...
// ...
// ------------------------------------------------------------------------
// The GetUidls method is deprecated:
// sa: StringArray
var sa = mailman.GetUidls();
if (mailman.LastMethodSuccess == false) {
console.log(mailman.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
var st = new chilkat.StringTable();
success = mailman.FetchUidls(st);
if (success == false) {
console.log(mailman.LastErrorText);
return;
}
}
chilkatExample();