function CampaignMonitor::subscriberGetSingleSubscriber in Campaign Monitor 6.3
Same name and namespace in other branches
- 6.2 lib/CMBase.php \CampaignMonitor::subscriberGetSingleSubscriber()
* Returns the details of a particular subscriber. *
Parameters
$list_id The ID of the list to which the subscriber belongs: * @param $email The subscriber's email address * @return mixed A parsed response from the server, or null if something failed * @see http://www.campaignmonitor.com/api/method/subscribers-get-single-subscri...
File
- lib/
CMBase.php, line 829
Class
- CampaignMonitor
- The new CampaignMonitor class that now extends from CMBase. This should be backwards compatible with the original (PHP5) version.
Code
function subscriberGetSingleSubscriber($list_id = null, $email) {
if (!$list_id != null) {
$list_id = $this->list_id;
}
return $this
->makeCall('Subscribers.GetSingleSubscriber', array(
'params' => array(
'ListID' => $list_id,
'EmailAddress' => $email,
),
));
}