ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
124 stars 111 forks source link

User #173

Closed Krishna8077078 closed 3 years ago

Krishna8077078 commented 3 years ago

How to get user Without Pagination From Api...

ccvlad commented 3 years ago

Hi, @Krishna8077078

use the code below:

ConnectyCube.users.get(userId).then(response => console.log(response.user));
ConnectyCube.users.get({ login: 'some_login' }).then(response => console.log(response.user));
ConnectyCube.users.get({ email: 'some_email@gmail.com' }).then(response => console.log(response.user));
Krishna8077078 commented 3 years ago

I think u can't get it what i am trying to say...means is--how to retrieve users from API as without pagination..and is there any other way to filter use via a phonebook contact list.

ccvlad commented 3 years ago

You will receive response with one user w/o pagination if you would use the code I have provided before (see full possible parameters in our docs). You also are able to get users by filters - ConnectyCube.users.get(filter). Check the Adressbook API to get phone's contacts - https://developers.connectycube.com/server/users?id=retrieve-all-users

I did not understand your case. What is wrong with the pagination?