I am running this php code below but the push message is just showing FALSE. what am I doing wrong here.
$yourApiSecret = " ";
$AppId = " ";
$data = array(
“user_ids” => [‘174’],
“notification” => “You have a new message.”
);
$data_string = json_encode($data);
$ch = curl_init(‘https://push.ionic.io/api/v1/push’);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Content-Type: application/json’,
'X-Ionic-Application-Id: '.$AppId,
'Content-Length: ’ . strlen($data_string),
'Authorization: Basic '.base64_encode($yourApiSecret)
)
);
$result = curl_exec($ch);
var_dump($result);