Skip to content

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, corydhmiller and noelherrick 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
@n7studios n7studios deleted the add-bulk-add-subscribers-to-forms branch March 25, 2025 09:35
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