protected function CampaignMonitorManager::createSubscriberObj in Campaign Monitor 8.2
Create API subscribers object.
Parameters
string $listId: The Campaign Monitor list ID.
Return value
\CS_REST_Subscribers The Campaign Monitor subscriber object.
4 calls to CampaignMonitorManager::createSubscriberObj()
- CampaignMonitorManager::getSubscriber in src/
CampaignMonitorManager.php - Get values entered by the subscriber, when subscribing to a list.
- CampaignMonitorManager::subscribe in src/
CampaignMonitorManager.php - Subscribe a user to a given list, with information entered.
- CampaignMonitorManager::unsubscribe in src/
CampaignMonitorManager.php - Unsubscribe a given user, identified by e-mail address, from a given list.
- CampaignMonitorManager::updateSubscriberEmail in src/
CampaignMonitorManager.php - Updates the subscriber e-mail address for a given list.
File
- src/
CampaignMonitorManager.php, line 228
Class
- CampaignMonitorManager
- Manager for Campaignmonitor.
Namespace
Drupal\campaignmonitorCode
protected function createSubscriberObj($listId) {
return new \CS_REST_Subscribers($listId, $this->apiKey);
}