Resubscribing is something that is not documented in the Mailerlite documentation and I found while delving into the internet under an elementor plugin.
In developing an API connection for Laravel using the PHP package from Mailerlite, I needed to setup a resubscribe. The documentation does not mention it but there is a hidden parameter you can supply when creating a subscriber.
"resubscribe" => true
Interestingly you cannot run the create method for an existing record to resubscribe a subscriber. You can use update but resubscribe doesn't work here. The way around this is to delete the subscriber and then create them again with the resubscribe parameter. Deleting does not delete the subscriber, merely just marks them as deleted and as we are recreating anyway, nothing bad happens and we have reactivated our subscription!
Old documentation image |
Comments