Overview
This request will return a list of replies received for an SMS message.
The Method
API | - | Method |
---|---|---|
REST | GET | https://[YourURL]/api/2.0/sms_actions/replies/$message_id |
XML-RPC | Call | sms.GetSmsReplies |
Your URL is the address of your install.
Your method must be structured as follows:
GetSmsReplies(integer $message_id) : object
Parameters
This request only has one required parameter:
Property | Type | Description | Required |
---|---|---|---|
$message_id | integer | The ID of the SMS message to get replies for. | yes |
Responses
Type | Description |
---|---|
array | An array of replies. |
Code Samples
PHP (using REST API):
$url = '(Your URL)/api/2.0/sms_actions/replies/:message_id'; $method = 'GET'; $cSession = curl_init(); $headers = array(); $auth = base64_encode($username . ':' . $apikey); $headers[] = 'Authorization: Basic ' . $auth; curl_setopt($cSession, CURLOPT_URL, $url); curl_setopt($cSession, CURLOPT_RETURNTRANSFER, true); curl_setopt($cSession, CURLOPT_HEADER, false); curl_setopt($cSession, CURLOPT_CUSTOMREQUEST, strtoupper($method)); curl_setopt($cSession, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($cSession); curl_close($cSession);