<?php
$sms_text = 'You have appointment with Dr Ritika Khadse Refer for Squint Clinic at Vyawahare Netralaya on 23/03/2023.Thank you';


$api_url = "https://smswaapi.in/api/send.php?number=919595454907&type=text&message=".$sms_text."&instance_id=64057FF65CD54&access_token=14b6664e5ce3fd13e9652bd5067e1056";
//echo $api_url;
//Submit to server

//$response = file_get_contents( $api_url);
$response = '{
    "status": "success",
    "message": "Success",
    "data": {
      "key": {
        "remoteJid": "919595454907@c.us",
        "fromMe": true,
        "id": "BAE58EE2111BC3F4"
      },
      "message": {
        "extendedTextMessage": {
          "text": "You have appointment with Dr Ritika Khadse Refer for Squint Clinic at Vyawahare Netralaya on 23/03/2023.Thank you"
        }
      },
      "messageTimestamp": "1679576961",
      "status": "PENDING"
    }
  }';
$character = json_decode($response,true);
echo $status = $character['status'];


?>