Can the phone number of the recipient and the content of the message to be sent be changed? Additionally, I could not integrate the SMS API service. NetGSM has shared a sample PHP code. How can I integrate this? Here is the code:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => ‘https://api.netgsm.com.tr/sms/send/get’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => ”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => ‘POST’,
CURLOPT_POSTFIELDS => array(‘usercode’ => ‘850XXXXXXX’,’password’ => ‘XXXX’,’gsmno’ => ‘5XXXXXXXXXX’,’message’ => ‘testmesajı’,’msgheader’ => ‘mesajbaşlığı’,’filter’ => ‘0’,’startdate’ => ‘230520221650’,’stopdate’ => ‘230520221830’,’appkey’=>’xxx’),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;