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

getContacts returns only a dozen contacts #93

Open
phillipadsmith opened this issue Mar 8, 2018 · 1 comment
Open

getContacts returns only a dozen contacts #93

phillipadsmith opened this issue Mar 8, 2018 · 1 comment

Comments

@phillipadsmith
Copy link

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
Copy link
Member

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.

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

2 participants