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

Paging through a list of users #159

Open
lamelyan opened this issue Jan 6, 2020 · 1 comment
Open

Paging through a list of users #159

lamelyan opened this issue Jan 6, 2020 · 1 comment

Comments

@lamelyan
Copy link

lamelyan commented Jan 6, 2020

I get a list of users by segment id.

 var parameters = new Dictionary<string, string>();
 parameters.Add("segment_id", segmentId);
 var result= usersClient.List(parameters);

The result is paged by 50 users per page. How do I retrieve the next page in the results?

I see that there is a method called Next that is not yet implemented.

Is there another way to get all users in a segment? Do I need to use scrolling? Do I pass in an additional parameter and call the List method again?

@johnnyoshika
Copy link

Try this:

usersClient.List(new Dictionary<string, string> { { "page", "2" } });

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