generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Email Address
Paride Azzari edited this page Aug 24, 2024
·
1 revision
Through the Email Address endpoint you can replace the opt-in reason and the marketable state of a specific email address.
The method replace
retrieves information about the custom fields and properties on the Keap order model.
use KeapGeek\Keap\Facades\Keap;
Keap::emailAddress()->updateStatus(
string $email,
bool $opted_in,
?string $opt_in_reason
);
This method accepts the email
as a string, the opted_in
state as a boolean and a optional opt_in_reason
as a string.
If no reason is provided, the default value set in the Config file will be used.