Skip to content

Commit

Permalink
Update ApiParser.class.php
Browse files Browse the repository at this point in the history
v1.2.10
Added ScheduleSendNewsletterToLists & ScheduleSendNewsletterToSegments.
  • Loading branch information
emailplatform authored Nov 25, 2019
1 parent 9410081 commit c1bffeb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/ApiParser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,36 @@ public function ScheduleSendNewsletter($campaignid = false, $hours = false, $sav
return self::REQUEST_FAILED;
}

public function ScheduleSendNewsletterToLists($newsletterid = false, $timeToSend = false, $listids = array())
{
$url = $this->URL . '/Sends/ScheduleSendNewsletterToLists';
if($newsletterid && !empty($listids))
{
$params = array(
'newsletterid' => $newsletterid,
'timeToSend' => $timeToSend,
'listids' => $listids
);
return $this->MakePostRequest($url, $params);
}
return self::REQUEST_FAILED;
}

public function ScheduleSendNewsletterToSegments($newsletterid = false, $timeToSend = false, $segmentids = array())
{
$url = $this->URL . '/Sends/ScheduleSendNewsletterToSegments';
if($newsletterid && !empty($segmentids))
{
$params = array(
'newsletterid' => $newsletterid,
'timeToSend' => $timeToSend,
'segmentids' => $segmentids
);
return $this->MakePostRequest($url, $params);
}
return self::REQUEST_FAILED;
}

/**
* ScheduleSendSMS
* Schedule SMS campaign for sending.
Expand Down

0 comments on commit c1bffeb

Please sign in to comment.