private function CampaignMonitor::createSubscriberObj in Campaign Monitor 7
Create API subscribers object.
Parameters
string $list_id: The Campaign Monitor list ID.
Return value
CS_REST_Subscribers|bool The Campaign Monitor subscriber object or FALSE on failure.
4 calls to CampaignMonitor::createSubscriberObj()
- CampaignMonitor::getSubscriber in lib/
campaignmonitor.class.inc - Get values entered by the subscriber.
- CampaignMonitor::subscribe in lib/
campaignmonitor.class.inc - Subscribe a user to a given list, with information entered.
- CampaignMonitor::unsubscribe in lib/
campaignmonitor.class.inc - Unsubscribe a given user, identified by e-mail address, from a given list.
- CampaignMonitor::updateSubscriberEmail in lib/
campaignmonitor.class.inc - Updates the subscriber e-mail address for a given list.
File
- lib/
campaignmonitor.class.inc, line 266 - Implementation of the CampaignMonitor class.
Class
- CampaignMonitor
- Implementation of the CampaignMonitor class.
Code
private function createSubscriberObj($list_id) {
if ($this
->libraryLoad(self::FILE_SUBSCRIBERS)) {
return new CS_REST_Subscribers($list_id, $this->apiKey);
}
$this
->addError(WATCHDOG_ERROR, t('Failed to locate the subscribers library.'));
return FALSE;
}