ocilo / skype-http

Unofficial Skype API for Node.js via HTTP
https://ocilo.github.io/skype-http
MIT License
51 stars 24 forks source link

getContacts returns only a dozen contacts #93

Open phillipadsmith opened 6 years ago

phillipadsmith commented 6 years ago
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.

demurgos commented 6 years ago

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.