File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,7 @@ public function campaignStatByReferrals($id)
564
564
* @param string $attachments
565
565
* @param string $type
566
566
* @param bool $useTemplateId
567
+ * @param string $sendDate
567
568
*
568
569
* @return mixed
569
570
*/
@@ -576,7 +577,8 @@ public function createCampaign(
576
577
$ name = '' ,
577
578
$ attachments = '' ,
578
579
$ type = '' ,
579
- $ useTemplateId = false
580
+ $ useTemplateId = false ,
581
+ $ sendDate = ''
580
582
)
581
583
{
582
584
if (empty ($ senderName ) || empty ($ senderEmail ) || empty ($ subject ) || empty ($ bodyOrTemplateId ) || empty ($ bookId )) {
@@ -606,6 +608,10 @@ public function createCampaign(
606
608
'type ' => $ type ,
607
609
);
608
610
611
+ if (!empty ($ sendDate )){
612
+ $ data ['send_date ' ] = $ sendDate ;
613
+ }
614
+
609
615
$ requestResult = $ this ->sendRequest ('campaigns ' , 'POST ' , $ data );
610
616
611
617
return $ this ->handleResult ($ requestResult );
You can’t perform that action at this time.
0 commit comments