<?php if (getenv('REQUEST_METHOD' ) == 'POST') { $postData = file_get_contents("php://input" ); if (!empty($postData)) { $decode =json_decode ($postData,true ); $extracted_data = $decode;echo $refid = $extracted_data->ref_id;echo $response = $extracted_data->response;echo $query = $extracted_data->query;} } ?>
{
"ref_id": "969045705862619208",
"query": "*556#",
"response": "BizPlus Main account:N100.00; NEW! Get 6x MORE when you recharge with *888*PIN# today.Details via SMS."
}