$url = "https://lifetimesms.com/plain"; $parameters = [ "api_token" => "Your API Token", "api_secret" => "Your API Secret", "to" => "92xxxxxxxxxx", "from" => "Lifetimesms", "message" => "Testing SMS", ]; $ch = curl_init(); $timeout = 30; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); $response = curl_exec($ch); curl_close($ch); echo $response ;
Posts
Showing posts from October, 2023