protected function CampaignMonitor::createListObj in Campaign Monitor 8
Create API list object.
Parameters
string $listId: The Campaign Monitor list ID.
Return value
\CS_REST_Lists The Campaign Monitor list object.
6 calls to CampaignMonitor::createListObj()
- CampaignMonitor::createList in src/
CampaignMonitor.php - Create a new list at the Campaign Monitor servers. The side-effect is that the local cache is cleared.
- CampaignMonitor::deleteList in src/
CampaignMonitor.php - Delete a list from Campaign Monitor. This action can not be reverted. The list is also removed from the local cache.
- CampaignMonitor::getCustomFields in src/
CampaignMonitor.php - Fetch custom fields for a given list, then store this information locally in the list cache. The information is stored as a keyed array on the list array under the "CustomFields" key.
- CampaignMonitor::getListDetails in src/
CampaignMonitor.php - Gets list details from Campaign Monitor. This information is retrieved from the local cache and may be outdated. It fetches the unsubscribe link, confirmation success page and confirmed opt-in options.
- CampaignMonitor::getListStats in src/
CampaignMonitor.php - Fetch stats about a given list, which includes number of subscribers and unsubscribers. This information is temporarily stored in the local cache. The default timeout is 360 seconds.
File
- src/
CampaignMonitor.php, line 138 - Implementation of the CampaignMonitor class, which is a wrapper class for Campaign Monitor v3 API. It's implemented as a Singleton class and instances are created using the account variables and the static function getConnector(). An example:.
Class
Namespace
Drupal\campaignmonitorCode
protected function createListObj($listId) {
return new \CS_REST_Lists($listId, $this->apiKey);
}