| Requires any of the roles: | Client, Admin, Partner |
| POST | /communication/message/clickatell/sms | Sends an SMS to phone numbers provided. |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class SendClickatellSmsRequest
{
/**
* Messages to be Sent
*/
@ApiMember(Description="Messages to be Sent", IsRequired=true)
open var Messages:ArrayList<ClickatellMessage> = ArrayList<ClickatellMessage>()
}
open class ClickatellMessage
{
open var channel:String? = null
open var to:String? = null
open var content:String? = null
open var clientMessageId:String? = null
}
open class ClickatellMessageResponse
{
open var messages:ArrayList<ClickatellResponsesMsg>? = null
open var error:String? = null
open var ResponseStatus:ResponseStatus? = null
}
open class ClickatellResponsesMsg
{
open var apiMessageId:String? = null
open var accepted:Boolean? = null
open var to:String? = null
open var error:String? = null
open var msg:ClickatellMessage? = null
}
Kotlin SendClickatellSmsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /communication/message/clickatell/sms HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Messages":[{"channel":"String","to":"String","content":"String","clientMessageId":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"messages":[{"apiMessageId":"String","accepted":false,"to":"String","error":"String","msg":{"channel":"String","to":"String","content":"String","clientMessageId":"String"}}],"error":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}