title: find value from API callback url
body: <p>I am using an API for sending sms in my site. As per their documentation, the API structure is as follows:  </p>
  
  <pre><code>http://example.com/api/swsend.asp?username=xxxx&amp;password=xxxx&amp;sender=senderId&amp;sendto=919xxxx,919xxxx&amp;message=hello&amp;dlrUrl=http://yourServer_Url?logID=$logID$%26phNo=$phNO$%26result=$result$  
  </code></pre>
  
  <p>the message sending part is OK. But I am confused with Callback url. My function for callback is as follows:  </p>
  
  <pre><code>public function sendMessageCallback() {        
  
      $responseBody = file_get_contents('php://input');  
  
      $data = array('value' =&gt; $responseBody, 'date' =&gt; date('Y-m-d h:i:s'));
      $this-&gt;db-&gt;insert('test1', $data);
  }
  </code></pre>
  
  <p>and so my api call is like<br>
  <code>http://example.com/api/swsend.asp?username=xxxx&amp;password=xxxx&amp;sender=senderId&amp;sendto=919xxxx,919xxxx&amp;message=hello&amp;dlrUrl=http://example.in/API/sendMessageCallback</code></p>
  
  <p>But nothing is written to DB. </p>