https://www.programming-helper.com/chat
// Send a message $params = array( "action" => "SendMessage", "token" => "YOUR-TOKEN", "user" => "YOUR-NAME", "message" => "Hello world!" ); // Send the request $ch = curl_init("https://www.programming-helper.com/chat/api"); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_POST => 1, CURLOPT_POSTFIELDS => $params )); // Get the response $responseJSON = curl_exec($ch); // Handle the response $response = json_decode($responseJSON, true); if (!$response["success"]) { // Do something with the error }