Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

API get subscribers by list_id #585

Closed
charlesmudy opened this issue Nov 13, 2021 · 1 comment
Closed

API get subscribers by list_id #585

charlesmudy opened this issue Nov 13, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@charlesmudy
Copy link

charlesmudy commented Nov 13, 2021

The API from here https://listmonk.app/docs/apis/subscribers/#get-apisubscriberslist_id says you can use multiple params to get subscribers by list_id but the problem is it seems to fetch only the first list_id and not the ones after ... so if the first list_id has empty subscribers, the whole result is empty.

Am I missing an upgrade?

Example with this https://email.domain.com/api/subscribers?per_page=all&list_id=12&list_id=21

I was expecting it to merge the array as results, if list_id(1) has 20 subscribers and list_id(2) has 20 subscribers, the total result is 20 subscribers

@charlesmudy charlesmudy changed the title API get subscribers by list API get subscribers by list_id Nov 13, 2021
@knadh knadh closed this as completed in 3386de4 Nov 29, 2021
@knadh knadh added the bug Something isn't working label Nov 29, 2021
@knadh
Copy link
Owner

knadh commented Nov 29, 2021

Apologies @charlesmudy. I missed this issue. It was indeed a bug and I've just fixed it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants