You can configure your Textlocal account to have delivery receipt notifications sent to a URL as POST parameters. Simply select Settings->Delivery Receipts within Messenger and enter your script URL.
As all we are doing is sending you variables, it's quite difficult to show code examples, however the following might help - including, in some languages, examples of writing the variables to a database and/or file:
<?php $number = $_REQUEST['number']; $status = $_REQUEST['status']; $customID = $_REQUEST['customID']; ?>
Once you've configured your Textlocal settings to forward to your URL, the following variables will be sent as POST variables:
|number||The recipient's mobile phone number|
|status||The delivery status of the message. This will either be:
|customID||If applicable, the custom ID associated with the message.|