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

Fetching a list of automated emails is missing query params #143

Closed
ye opened this issue Jul 13, 2017 · 3 comments
Closed

Fetching a list of automated emails is missing query params #143

ye opened this issue Jul 13, 2017 · 3 comments

Comments

@ye
Copy link
Contributor

ye commented Jul 13, 2017

For some reason, Mailchimp API v3 official documentation doesn't mention the usual query params for this particular API endpoint: /automations/{workflow_id}/emails.

So in the corresponding mailchimp3 library call: client.automations.emails.all(workflow_id=''), it accepts neither pagination query params nor field related filters(fields, exclude_fields).

As a result, the results returned from mailchimp are using the default 10 item page. If you have more than 10 automation campaign emails, it will only return the first 10.

I spoke with Mailchimp support, the pagination and field filter query params are global for all the GET calls.

I will try to come up with a PR for this.

@stephenross
Copy link
Collaborator

stephenross commented Jul 13, 2017 via email

@ye
Copy link
Contributor Author

ye commented Jul 13, 2017

@stephenross thank you for your quick response and will do as specified! I did request them to update the official documentation and they agreed and promised to relay the feedback to their internal team to fix this. But I have yet to see the changes yet (as of today).

As a proof, this is their response in regard to the fields filter query params being global.
mailchimp-support-global-query-params

@ye
Copy link
Contributor Author

ye commented Jul 13, 2017

@stephenross PR#144 is submitted accordingly above.

Since we are on a time crunch here, I've only implemented for this particular endpoint. I would open a new issue to address the global query params and come up a new PR for that when I get more time to walk though a dozen endpoints and testing them, is that okay? Would love to see this particular endpoint fixed so that our code can work correctly for now first. Thanks.

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