I work on SendinBlue Api to recover statistics of my email campaigns. But the probleme is that I can't recover one of the object because there in a "." in the name of the object.
Here the json :
[statistics] => stdClass Object
(
[statsByDomain] => stdClass Object
(
[gmail.com] => stdClass Object
(
[uniqueClicks] => 10
[clickers] => 130
[complaints] => 130
[sent] => 130
[softBounces] => 59
[hardBounces] => 48
[uniqueViews] => 59
[unsubscriptions] =>89
[viewed] => 130
[delivered] => 130
)
)
)
But I don't understand how can I recover the object of "statsByDomain". Someone can help me ?
The first part work well, but know I want to recover all the object contain in "statsByDomain" and I don't know how to do that.
Now I can recover one object by one :
foreach($campagnes as $campagne){
echo "<br> UniqueClicks : " .$campagne['statistics']-> statsByDomain -> {'gmail.com'} -> uniqueClicks;
echo "<br> UniqueClicks : " .$campagne['statistics']-> statsByDomain -> {'gmail.fr'} -> uniqueClicks;
}