To receive SMS messages in real-time, please log in to your Cellcast account to set up the URL where the messages will be forwarded to. Cellcast recommends using a HTTPS URL.
When receiving SMS messages in real-time, Cellcast’s server will send a HTTP POST to the URL you have specified, as soon as a message is received.
Parameters | Description |
---|---|
from | This is the mobile number of the handset which sent in the message |
body | This is the text message content that was received |
received_at | This is the date the message was received |
message_id | Inbound Message ID |
custom_string | Custom String Value |
type | Message Type: SMS or MMS |
$json = file_get_contents('php://input');
$data = json_decode($json, true);