<?php // SMSPoh Authorization Token $token = ""; // Prepare data for POST request $data = [ "to" => "09XXXXXX", "message" => "Hello SMSPoh", "sender" => "Info" ]; $ch = curl_init("https://smspoh.com/api/v2/send"); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Authorization: Bearer ' . $token, 'Content-Type: application/json' ]); $result = curl_exec($ch); echo $result; ?>