-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (35 loc) · 991 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
include "./letextoservice.php";
//On recupere les informations pour l'envoi
//Par exemple le nom et les contacts
$letextoService = new LeTExtoService();
//Liste d'envoi
$contact = [
[
'phone' => '22508080808',
],
[
'phone' => '225023009876',
],
[
'phone' => '22506080808',
]
];
//Parametre du texto
$param= [
'step' => NULL,
'sender' => 'SIGES-DCF',
'name' => 'Notification nvle agent',
'campaignType' => 'SIMPLE',
'recipientSource' => 'CUSTOM',
'groupId' => NULL,
'filename' => NULL,
'saveAsModel' => false,
'destination' => 'NAT_INTER',
'message' => 'message',
'emailText' => NULL,
'recipients' => $contact,
'sendAt' => [],
];
$idCampaign = $letextoService->setCampaign($param);
$sendCampaign = $letextoServie->sendSms($idCampaign);