feat: cli command to un-/register MailJet webhook url
This commit is contained in:
@@ -1158,6 +1158,21 @@ Removes expired pending newsletter double opt-in requests.
|
||||
- Scheduled cleanup removes all currently expired pending requests (`expires_at <= now`) as a safety net.
|
||||
- Confirmed requests are converted into durable per-list newsletter consent records and then deleted.
|
||||
|
||||
#### app:mailjet:newsletter-webhook
|
||||
|
||||
```bash
|
||||
php bin/console app:mailjet:newsletter-webhook register
|
||||
php bin/console app:mailjet:newsletter-webhook remove 123
|
||||
php bin/console app:mailjet:newsletter-webhook deactivate
|
||||
```
|
||||
|
||||
Creates or deletes the Mailjet `unsub` callback for `POST /webhooks/mailjet/newsletter`.
|
||||
|
||||
- Uses `APP_BASE_URL` by default and appends the webhook path.
|
||||
- Pass `--url` to target a different full webhook URL.
|
||||
- `register` prints the API response payload so you can note the callback ID.
|
||||
- `remove` and `deactivate` require the callback ID returned by Mailjet.
|
||||
|
||||
### 10.3 Setup Commands
|
||||
|
||||
#### app:crypto:generate-keys
|
||||
|
||||
Reference in New Issue
Block a user