MailchimpService
extends Component
in package
Table of Contents
- CACHE_KEY = 'emails.mailchimp_lists'
- $_lists : array<string|int, mixed>
- $_mailchimp : MailChimp
- clearCaches() : mixed
- Clear mailchimp caches
- getApi() : MailChimp|null
- Get api instance
- getList() : MailchimpList
- Get a list by id
- getLists() : array<string|int, mixed>
- Get all lists
- isEnabled() : bool
- Is the api up and running
Constants
CACHE_KEY
public
mixed
CACHE_KEY
= 'emails.mailchimp_lists'
Properties
$_lists
protected
array<string|int, mixed>
$_lists
$_mailchimp
protected
MailChimp
$_mailchimp
Methods
clearCaches()
Clear mailchimp caches
public
clearCaches() : mixed
Return values
mixed —getApi()
Get api instance
public
getApi() : MailChimp|null
Return values
MailChimp|null —getList()
Get a list by id
public
getList(string $id) : MailchimpList
Parameters
- $id : string
Return values
MailchimpList —getLists()
Get all lists
public
getLists() : array<string|int, mixed>
Return values
array<string|int, mixed> —isEnabled()
Is the api up and running
public
isEnabled() : bool