-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi.
First of all thanks for the bundle, is really helping me! I was working with it, and I'm adding some functions, like schedule the newsletter, but every time I'm execute it, mail jet just sent it...
I come basically with this adding in the send:
This add in requestUrlBuilder:
else if($resource == "schedule"){ $newsletter_id = $params['ID']; $this->call_url = "https://api.mailjet.com/v3/REST/newsletter/" . $newsletter_id . "/schedule"; }
And in the SendRequest function
} else if($resource == "schedule"){ curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $params['Date']); curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json' )); }
But anytime I try yo schedule I get the correct response:
{ "Count" : 1, "Data" : [{ "Status" : "programmed" }], "Total" : 1 }
But MailJet interprets that the campaign need to be sent... any idea why?