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

Add add_subscribers_to_forms method #98

Merged
merged 8 commits into from
Dec 6, 2024

Conversation

n7studios
Copy link
Contributor

Summary

Adds the add_subscribers_to_forms method, to support bulk subscribing subscribers to forms:
https://developers.kit.com/v4.html#bulk-add-subscribers-to-forms

Testing

  • testAddSubscribersToForms: Test that add_subscribers_to_forms() returns the expected data.
  • testAddSubscribersToFormsWithReferrer: Test that add_subscribers_to_forms() returns the expected data when a referrer URL is specified.
  • testAddSubscribersToFormsWithReferrerUTMParams: Test that add_subscribers_to_forms() returns the expected data when a referrer URL with UTM parameters is specified.
  • testAddSubscribersToFormsWithInvalidFormIDs: Test that add_subscribers_to_forms() returns the expected errors when invalid Form IDs are specified.
  • testAddSubscribersToFormsWithInvalidSubscriberIDs: Test that add_subscribers_to_forms() returns the expected errors when invalid Subscriber IDs are specified.

Checklist

@n7studios n7studios self-assigned this Dec 4, 2024
@n7studios n7studios changed the base branch from master to tests-run-phpstan December 5, 2024 03:28
@n7studios n7studios requested review from a team, noelherrick and corydhmiller and removed request for a team December 5, 2024 03:29
@n7studios n7studios marked this pull request as ready for review December 5, 2024 03:29
@n7studios n7studios merged commit e59f342 into tests-run-phpstan Dec 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants