I've looked for similar topics and could't find any solutions, I'm hoping someone can help me..
Note: I'm running the script on xampp localhost and my country code is +90 I've followed the Nexmo documentation to send an sms. and below is the php script.
<?php
$url = 'https://rest.nexmo.com/sms/json?' . http_build_query(
[
'api_key' => 'xxxxxxxx',
'api_secret' => 'xxxxxxxxxxx',
'to' => 90542xxxxxxx,
'from' => 'MyCompanyName',
'text' => 'Working'
]
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
echo $response;
?>
and the following is the outcome. it seems like it is sending it however I'm not receiving a sms on my mobile what could possibly cause this?
{ "message-count": "1", "messages": [{ "to": "90542xxxxxxx", "message-id": "0C00000016FF36E9", "status": "0", "remaining-balance": "1.77080000", "message-price": "0.01910000", "network": "28602" }] }