-
Notifications
You must be signed in to change notification settings - Fork 24
v4 API: Forms and Landing Pages: Pagination and Total Count #91
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
Conversation
@noelherrick @mercedesb The PHP SDK has always had a distinction between Forms and Landing Pages ( With the introduction of pagination support in the v4 API, I'm unsure what the best route here is:
Would love to have your input! |
@n7studios Thanks for calling this out. I have an open PR to be able to filter This should allow you to continue supporting It should be merged and deployed within the next day or so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - after Mercedes gets that PR merged and you start using those new params, we should be good to go.
That's awesome - thanks so much! |
|
@mercedesb Thanks so much! Would it be possible to add a boolean filter for I'm happy with the default behaviour of archived forms being included in results - but any option to filter them out in the API request would be fantastic, so that the Sorry for not spotting this sooner. |
Whoops, we shouldn't have changed behavior. I'll add a |
Ok, you can filter forms by status now. And it'll default to |
Awesome, thanks! @noelherrick have requested a re-review as a few changes since the initial PR, so would be great to have you check this over. |
Summary
Adds total count and pagination support for
get_forms
andget_landing_pages
methods.Testing
Existing tests pass. Tests for
get_resources
method removed, as this method no longer exists, as the v4 API doesn't support thesubscription_forms
endpoint, and each method (get_forms
,get_landing_pages
,get_tags
) makes its own call toget
.Checklist