Skip to content

Commit

Permalink
Merge pull request #34 from emailplatform/version1.2.10
Browse files Browse the repository at this point in the history
Version1.2.10
  • Loading branch information
emailplatform authored Nov 26, 2019
2 parents 837028c + c1bffeb commit d0522a8
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ var_dump($info);

## Changelog:

### _Differences between **v1.2.9** and **v1.2.10**_
#### New methods:

* **ScheduleSendNewsletterToLists**
> *Definition:*
> ```php
> public function ScheduleSendNewsletterToLists($newsletterid = false, $timeToSend = false, $listids = array())
>```
<br>
* **ScheduleSendNewsletterToSegments**
> *Definition:*
> ```php
> public function ScheduleSendNewsletterToSegments($newsletterid = false, $timeToSend = false, $segmentids = array()))
>```
<br>
### _Differences between **v1.2.7** and **v1.2.9**_
#### Method definition changed:
Expand Down
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 d0522a8

Please sign in to comment.