CampaignMonitor::sendCampaign PHP Метод

sendCampaign() публичный Метод

Schedules an existing campaign for sending. The campaign must be imported with defined recipients. For campaigns with more than 5 recipients the user must have sufficient credits or their credit card details saved within the application for the campaign to be sent via the API. For campaigns with 5 recipients or less the user must have enough test campaigns remaining in their API account.
public sendCampaign ( string $campaignId, string $confirmationEmail, string[optional] $deliveryDate = null ) : string
$campaignId string The ID of the campaign to send.
$confirmationEmail string The email address where the confirmation email will be sent to.
$deliveryDate string[optional]
Результат string
    public function sendCampaign($campaignId, $confirmationEmail, $deliveryDate = null)
    {
        // set parameters
        $parameters['ConfirmationEmail'] = (string) $confirmationEmail;
        $parameters['SendDate'] = $deliveryDate;
        // make the call
        return $this->doCall('campaigns/' . $campaignId . '/send', $parameters, 'POST');
    }