skype-http icon indicating copy to clipboard operation
skype-http copied to clipboard

getContacts returns only a dozen contacts

Open phillipadsmith opened this issue 7 years ago • 1 comments

async function run() {
  const api: Api = await connect({credentials: {username: "", password: ""}});
  for (const contact of await api.getContacts()) {
  console.log(contact);
 }
}

Returns only perhaps a dozen contacts. Do you know how a "contact" is defined by Skype? I have hundreds of contacts and I'm curious if I need to use paging or something to work through them all?

Thanks for this.

phillipadsmith avatar Mar 08 '18 20:03 phillipadsmith

Hi, Sorry for the long response delay.

It may be related to paging (not implemented) but from what I remember Skype has a relatively high limit. It can return about 50 results for my account. It would help if you knew if the official Skype web app uses paging or not. Could you inspect your network tab for requests with the contacts/v2/users/<yourId> part? Does it perform multiple requests?

I'll double-check if there is some paging or not and then add support for it if it's the issue.

demurgos avatar Mar 27 '18 22:03 demurgos