This method serves to create a send according to your parameters.
Field | Type | Description |
---|---|---|
listeid | integer | Identifier of your list Required parameter |
mailid | integer | Identifier of your message Required parameter |
type | string | Type of your send 'manu', 'auto' Required parameter |
date | string |
Date of your send manu : ->set('date', 'AAAA-MM-JJ HH') auto : ->set('date', ['annee' => x, mounth' => x, 'week' => x, 'day' => x, 'hour' => x, 'jweekday' => x]) auto : 'weekday' => 1 => 'monday', 2 => 'tuesday', 3 => 'wednesday', 4 => 'thursday', 5 => 'friday', 6 => 'saturday', 7 => 'sunday', 8 => 'notmonday', 9 => 'nottuesday', 10 => 'notwednesday', 11 => 'notthursday', 12 => 'notfriday', 13 => 'notsaturday', 14 => 'notsunday', 15 => 'joursemaine', 16 => 'pasweekend', 17 => 'notfrenchhollydayweekend', 18 => 'notbelgianhollydayweekend' Required parameter |
liste_in | integer | list identifier to add at your send |
liste_ex | integer | list identifier to add at your send |
optionurl | boolean | track clic number of your url (link) |
notauto | boolean | Exclude the subscribers being still in the automatic sequence |
// Ajout d'un envoi manuel
$sgApi
->set('listeid', 12345)
->set('mailid', 12345)
->set('type', "manu")
->set('date', "2016-10-31 23")
->set('optionurl', true);
$call = $sgApi->call('set_sending');