Api

<back to all web services

Submit

Submit metodu birden fazla numaraya aynı içerikli kısa mesaj gönderimi için kullanılmaktadır.

Submit Parameters:
NameParameterData TypeRequiredDescription
CredentialqueryCredentialNo
DataCodingquerystringNo
CommercialqueryboolNo
RecipientTypequeryintNo
SkipAhsqueryboolNo
HeaderqueryHeaderNo
MessagequerystringNo
ToqueryList<string>No
CustomIdquerystringNo
Credential Parameters:
NameParameterData TypeRequiredDescription
UsernameformstringNo
PasswordformstringNo
Header Parameters:
NameParameterData TypeRequiredDescription
FromformstringNo
ValidityPeriodformint?No
ScheduledDeliveryTimeformDateTime?No
RouteformintNo
SubmitResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseformSubmitReturnResponseNo
SubmitReturnResponse Parameters:
NameParameterData TypeRequiredDescription
MessageIdformlongNo
StatusformStatusNo
Status Parameters:
NameParameterData TypeRequiredDescription
CodeformintNo
DescriptionformstringNo

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 /json/reply/Submit HTTP/1.1 
Host: gw.mobilisim.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Credential":{"Username":"String","Password":"String"},"DataCoding":"String","Commercial":false,"RecipientType":0,"SkipAhs":false,"Header":{"From":"String","ValidityPeriod":0,"ScheduledDeliveryTime":"0001-01-01T00:00:00.0000000","Route":0},"Message":"String","To":["String"],"CustomId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Response":{"MessageId":0,"Status":{"Code":0,"Description":"String"}}}