Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only 500 contacts #29

Open
fdl33333 opened this issue Nov 21, 2019 · 2 comments
Open

Only 500 contacts #29

fdl33333 opened this issue Nov 21, 2019 · 2 comments

Comments

@fdl33333
Copy link

fdl33333 commented Nov 21, 2019

I can only get first 500 contacts ..

Here is my code

`

// Require the module
const iCloud = require('apple-icloud');

var session = {}; // An empty session. Has to be a session object or file path that points on a JSON file containing your session
var username = "xxx"; // Your apple id
var password = "xxxx"; // Your password

const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
})

var myCloud = new iCloud("icloud-session.json", username, password);

myCloud.on("ready", function() {
console.log("Ready Event!");
// Check if the two-factor-authentication is required
if (myCloud.twoFactorAuthenticationIsRequired) {
// Get the security code using node-prompt
readline.question("Enter Code:", (code) => {
myCloud.securityCode = code;
readline.close()
});
}
else {
console.log("You are logged in completely!");
myCloud.Contacts.list(function(err, data) {
if (err) return console.error(err);
// Successfully your contacts :)
// console.log(data);
console.log(data.contacts.length);
});
}
});

`

@fdl33333 fdl33333 changed the title Trying to get contacts I get:: { reason: 'Missing X-APPLE-WEBAUTH-TOKEN cookie', error: 1 } Only 500 contacts Dec 12, 2019
@arvind-adita
Copy link

Hi,

I am getting this error on Contacts.list method, Can you please help me
{ reason: 'Missing X-APPLE-WEBAUTH-TOKEN cookie', error: 1 }

Thanks
Arvind

@chleca
Copy link

chleca commented Apr 25, 2020

I would also be interesting in this fix. Getting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants