Skip to content

Add newsletter subscriber management#21

Merged
eelcoj merged 1 commit intomainfrom
subscriber
Dec 18, 2025
Merged

Add newsletter subscriber management#21
eelcoj merged 1 commit intomainfrom
subscriber

Conversation

@eelcoj
Copy link
Collaborator

@eelcoj eelcoj commented Dec 5, 2025

Courrier::Subscriber.create(email) # aliased add
Courrier::Subscriber.destroy(email) # aliased remove

Supported providers:
Beehiiv, Buttondown, Kit, Loops, Mailchimp and MailerLite

Configure like this::

config.subscriber = { provider: "buttondown", api_key: "xyz" }

Breaking changes:

  • Deprecates config.provider and config.api_key in favor of config.email hash
  • Old API still works with deprecation warnings (will be removed in v1.0.0)

Public API:
```ruby
Courrier::Subscriber.create(email) # aliased add
Courrier::Subscriber.destroy(email) # aliased remove
```

Supported providers:
Beehiiv, Buttondown, Kit, Loops, Mailchimp and MailerLite

Configure like this::
```ruby
config.subscriber = { provider: "buttondown", api_key: "xyz" }
```

Breaking changes:
- Deprecates `config.provider` and `config.api_key` in favor of config.email hash
- Old API still works with deprecation warnings (will be removed in v1.0.0)
@eelcoj eelcoj changed the title Add newsletter subscription management Add newsletter subscriber management Dec 9, 2025
@eelcoj eelcoj merged commit 4d23c5c into main Dec 18, 2025
1 check passed
@eelcoj eelcoj deleted the subscriber branch December 18, 2025 06:29
@eelcoj eelcoj added this to the Version 1.0.0 milestone Dec 28, 2025
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

Successfully merging this pull request may close these issues.

1 participant