iCloud.js is an independent project, and is not affiliated, endorsed, recommended by or otherwise affiliated with Apple Inc.
iCloud.js is a library for interacting with Apple's iCloud services for Node.js.
This library would not be possible without the help of:
Check the examples, or read the API reference
const iCloud = require('icloud.js');
const icloud = new iCloud({
username: "[email protected]",
password: "hunter2",
saveCredentials: true,
trustDevice: true
})
await icloud.authenticate()
console.log(icloud.status)
if (icloud.status === "MfaRequested") {
await icloud.provideMfaCode("123456")
}
await icloud.awaitReady;
console.log("Hello, " + icloud.accountInfo.dsInfo.fullName)
return icloud