SMSGateway

<back to all web services

SendSmsRequest

The following routes are available for this service:
POST/sendsms
SendSmsRequest Parameters:
NameParameterData TypeRequiredDescription
securitybodySecurityRequestDtoNo
notifybodySmsBodyDtoNo
SecurityRequestDto Parameters:
NameParameterData TypeRequiredDescription
partner_idformstringNo
timeformstringNo
hashformstringNo
SmsBodyDto Parameters:
NameParameterData TypeRequiredDescription
service_idformstringNo
numberformstringNo
carrierformstringNo
messageformstringNo
encodeformintNo
urlformstringNo
testformintNo
maskformstringNo
xtraparamsformDictionary<string, string>No
ResponseSmsDto Parameters:
NameParameterData TypeRequiredDescription
resultformResultResponseDtoNo
ResultResponseDto Parameters:
NameParameterData TypeRequiredDescription
codeformstringNo
messageformstringNo
idformstringNo

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /sendsms HTTP/1.1 
Host: 67.208.218.153 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"notify":{"carrier":"String","encode":0,"mask":"String","message":"String","number":"String","service_id":"String","test":0,"url":"String","xtraparams":[{"Key":"String","Value":"String"}]},"security":{"hash":"String","partner_id":"String","time":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"result":{"code":"String","id":"String","message":"String"}}