Access the iCloud API
var icloud = require('icloud');
var instance = icloud();
instance.login("username", "password", function(err) {
if (err) return console.log('login failed');
instance.contacts(function(err, results) {
if (err) return console.log('failed to fetch contacts');
console.log(results.contacts);
});
});
Contacts is the only service implemented so far. Pull-requests welcome.
The implementation is heavily inspired by pycloud