You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't very readable, and I was only able to obtain the 123 error code through trial & error as I didn't come across it in the documentation. It'd be great if there was a class constant representing this error code or if a shorthand helper method could be added such as if ($this->mailerLite->subscribers()->isSubscribed($email) that either returned a bool or threw an exception on error (e.g. 404).
The text was updated successfully, but these errors were encountered:
I'm a new user of the SDK, but it looks like this snippet is the best way to determine if an email is currently subscribed or not:
This isn't very readable, and I was only able to obtain the
123
error code through trial & error as I didn't come across it in the documentation. It'd be great if there was a class constant representing this error code or if a shorthand helper method could be added such asif ($this->mailerLite->subscribers()->isSubscribed($email)
that either returned a bool or threw an exception on error (e.g. 404).The text was updated successfully, but these errors were encountered: