How do Announcements work with AtomChat?
As a Community or Marketplace owner, you would want to occasionally want to make site-wide Announcements. Could be super-good news like your soon to roll-out Video chat feature for all or to notify them of an upcoming event, or something just as casual as Hi!
Where can your users see Announcements?
In the header section or top of the chat layout, there is a bell icon ?., click on it. If you have added any announcements, your users will see it here.
Here's how you can send Announcements via our API
Send Announcement
POST - https://api.cometondemand.net/api/v2/sendAnnouncement
curl --request POST \ --url https://api.cometondemand.net/api/v2/sendAnnouncement \ --header 'Accept: application/json' \ --header 'Content-Type: application/x-www-form-urlencoded'
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.cometondemand.net/api/v2/sendAnnouncement", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => [ "Accept: application/json", "Content-Type: application/x-www-form-urlencoded" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article