$url = "https://push-api.sare.pl/v1/campaigns/<YOUR_WEBSITE_UID>/test";
"title" => "Title of message",
"body" => "Body of message",
"link" => "https://sendflow.pl",
"icon" => "https://your-cdn.pl/icon.png",
"image" => "https://your-cdn.pl/image.png"
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Basic <YOUR_API_KEY>',
'Content-Type: application/json'
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
$result = curl_exec($ch);