You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get events and it is raising exception. /node_modules/icloud/index.js:144 cb(null, body) TypeError: cb is not a function
This is how I am calling events function.
`instance.login(username, password, function(err) {
if (err) return console.log('login failed');
instance.events("2015-07-16","2016-07-16","America/New_York", function( err, results){
if (err) {
console.log('failed to fetch contacts');
res.send(err);
} else {
console.log(results.contacts);
res.send(results.result);
}
});
});`
What I am doing wrong? Running on localhost, macos.
The text was updated successfully, but these errors were encountered:
I am trying to get events and it is raising exception.
/node_modules/icloud/index.js:144 cb(null, body)
TypeError: cb is not a function
This is how I am calling events function.
`instance.login(username, password, function(err) {
if (err) return console.log('login failed');
});`
What I am doing wrong? Running on localhost, macos.
The text was updated successfully, but these errors were encountered: