Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

A way to get list pages #72

Closed
stuartcusackie opened this issue Sep 27, 2021 · 2 comments
Closed

A way to get list pages #72

stuartcusackie opened this issue Sep 27, 2021 · 2 comments

Comments

@stuartcusackie
Copy link

Klaviyo API provides a 'marker' variable to retrieve additional pages when there are more than 1000 members on a list, but I don't see a way to use it in this package.

Is this possible?

Thank you!

@smoucka
Copy link
Contributor

smoucka commented Sep 27, 2021

Hi @stuartcusackie

Yes, it is possible. Apologies the argument is not mentioned in the example but it is present in the package.

public function getAllMembers($groupId, $marker = null)

Just make that subsequent request like this:

$client->lists->getAllMembers( 'GroupId', $marker = $marker_value );

I can update the example in the README.

@stuartcusackie
Copy link
Author

Perfect. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants