Bonjour,
je ne vois pas comment extraire les valeurs de SendingId, EventDate, EventType, EventEmail, EmailingName, URL... dans le stdClass Obj structuré comme suit.
Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
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
38
39
40
41
42
43
44
45
46
47
48
49
50 stdClass Object ( [query] => stdClass Object ( [x-startdate] => 2023-01-10T00:00:00+01:00 [x-enddate] => 2023-01-12T11:58:09+01:00 ) [data] => Array ( [0] => stdClass Object ( [SendingId] => 102800068 [EventDate] => 2023-01-12T10:39:59+01:00 [EventType] => click [EventEmail] => toto@laposte.net [EventInfos] => stdClass Object ( [EmailingName] => le_nom_de_emailing [URL] => http://www.monsite.fr/xxxxxxx ) ) [1] => stdClass Object ( [SendingId] => 102800068 [EventDate] => 2023-01-11T21:38:29+01:00 [EventType] => click [EventEmail] => tata@free.fr [EventInfos] => stdClass Object ( [EmailingName] => le_nom_de_emailing [URL] => http://www.monsite.fr/yyyyyy ) ) [2] => stdClass Object ( [SendingId] => 102805268 [EventDate] => 2023-01-11T21:29:02+01:00 [EventType] => click [EventEmail] => titi@free.fr [EventInfos] => stdClass Object ( [EmailingName] => le_nom_de_emailing [URL] => http://www.monsite.fr/zzzzzz )
NB : j'ai obtenu le schéma précédent avec le code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 $response = json_decode($result); var_dump($response); echo '<pre>'; print_r ($response); echo '</pre>';







Répondre avec citation
Partager