Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for endpoints in the sequences section of the v4 API.
Testing
testGetSequencesPagination
: Test that get_sequences() returns the expected data when pagination parameters and per_page limits are specified.testGetSequenceSubscriptionsWithBouncedSubscriberState
: Test that get_sequence_subscriptions() returns the expected data when a valid Sequence ID is specified and the subscription status is cancelled.testGetSequenceSubscriptionsWithAddedAfterParam
: Test that get_sequence_subscriptions() returns the expected data when a valid Sequence ID is specified and the added_after parameter is used.testGetSequenceSubscriptionsWithAddedBeforeParam
: Test that get_sequence_subscriptions() returns the expected data when a valid Sequence ID is specified and the added_before parameter is used.testGetSequenceSubscriptionsWithCreatedAfterParam
: Test that get_sequence_subscriptions() returns the expected data when a valid Sequence ID is specified and the created_after parameter is used.testGetSequenceSubscriptionsWithCreatedBeforeParam
: Test that get_sequence_subscriptions() returns the expected data when a valid Sequence ID is specified and the created_before parameter is used.testGetSequenceSubscriptionsPagination
: Test that get_sequence_subscriptions() returns the expected data when a valid Sequence ID is specified and pagination parameters and per_page limits are specified.testGetSequenceSubscriptionsWithInvalidSequenceID
: Test that get_sequence_subscriptions() throws a ClientException when an invalid Sequence ID is specified.testGetSequenceSubscriptionsWithInvalidSubscriberState
: Test that get_sequence_subscriptions() throws a ClientException when an invalid subscriber state is specified.testGetSequenceSubscriptionsWithInvalidPagination
: Test that get_sequence_subscriptions() throws a ClientException when invalid pagination parameters are specified.testAddSubscriberToSequenceByID
: Test that add_subscriber_to_sequence_by_subscriber_id() returns the expected data.testAddSubscriberToSequenceByIDWithInvalidSequenceID
: Test that add_subscriber_to_sequence_by_subscriber_id() throws a ClientException when an invalid Sequence ID is specified.testAddSubscriberToSequenceByIDWithInvalidSubscriberID
: Test that add_subscriber_to_sequence_by_subscriber_id() throws a ClientException when an invalid email address is specified.Removed Tests:
testAddSubscriberToSequenceWithFirstName
testAddSubscriberToSequenceWithCustomFields
testAddSubscriberToSequenceWithTagID
v4 API has no concept of adding a new subscriber to a sequence with data; a separate PR will be added to add support for the new
Create a subscriber
endpoint (https://developers.convertkit.com/v4.html#create-a-subscriber), which supports this.Checklist