| Requires any of the roles: | Client, Admin, Partner |
| POST | /communication/message/grandcom/sms | Sends an SMS to phone numbers provided. |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports digitaluapi.ServiceModel
Namespace Global
Namespace digitaluapi.ServiceModel
Public Partial Class GrandcomMessage
Public Overridable Property channel As String
Public Overridable Property to As String
Public Overridable Property content As String
Public Overridable Property clientMessageId As String
End Class
Public Partial Class GrandcomMsgResponse
Public Overridable Property messages As List(Of GrandcomResponseMsg)
Public Overridable Property error As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class GrandcomResponseMsg
Public Overridable Property apiMessageId As String
Public Overridable Property accepted As Boolean
Public Overridable Property to As String
Public Overridable Property error As String
Public Overridable Property hasError As Boolean
Public Overridable Property msg As GrandcomMessage
End Class
Public Partial Class SendGrandcomSmsRequest
'''<Summary>
'''Messages to be Sent
'''</Summary>
<ApiMember(Description:="Messages to be Sent", IsRequired:=true)>
Public Overridable Property Messages As List(Of GrandcomMessage) = New List(Of GrandcomMessage)
End Class
End Namespace
End Namespace
VB.NET SendGrandcomSmsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /communication/message/grandcom/sms HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Messages:
[
{
channel: String,
to: String,
content: String,
clientMessageId: String
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
messages:
[
{
apiMessageId: String,
accepted: False,
to: String,
error: String,
hasError: False,
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
}
}
}