POST api/Message/GetSMSTemplatesNew
Api for getting the sms templates new for mobile app
Request Information
URI Parameters
None.
Body Parameters
MessageModel| Name | Description | Type | Additional information |
|---|---|---|---|
| schoolid | integer |
None. |
|
| software | string |
None. |
|
| message | string |
None. |
|
| msgtype | string |
None. |
|
| mnumbers | Collection of string |
None. |
|
| token | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"schoolid": 1,
"software": "sample string 2",
"message": "sample string 3",
"msgtype": "sample string 4",
"mnumbers": [
"sample string 1",
"sample string 2"
],
"token": "sample string 5"
}
text/html
Sample:
{"schoolid":1,"software":"sample string 2","message":"sample string 3","msgtype":"sample string 4","mnumbers":["sample string 1","sample string 2"],"token":"sample string 5"}
application/xml, text/xml
Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models">
<message>sample string 3</message>
<mnumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</mnumbers>
<msgtype>sample string 4</msgtype>
<schoolid>1</schoolid>
<software>sample string 2</software>
<token>sample string 5</token>
</MessageModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of sms_templates_new| Name | Description | Type | Additional information |
|---|---|---|---|
| msgid | integer |
None. |
|
| schoolid | integer |
None. |
|
| mtype | string |
None. |
|
| msgtext | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"msgid": 1,
"schoolid": 1,
"mtype": "sample string 2",
"msgtext": "sample string 3"
},
{
"msgid": 1,
"schoolid": 1,
"mtype": "sample string 2",
"msgtext": "sample string 3"
}
]
text/html
Sample:
[{"msgid":1,"schoolid":1,"mtype":"sample string 2","msgtext":"sample string 3"},{"msgid":1,"schoolid":1,"mtype":"sample string 2","msgtext":"sample string 3"}]
application/xml, text/xml
Sample:
<ArrayOfsms_templates_new xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi">
<sms_templates_new>
<msgid>1</msgid>
<msgtext>sample string 3</msgtext>
<mtype>sample string 2</mtype>
<schoolid>1</schoolid>
</sms_templates_new>
<sms_templates_new>
<msgid>1</msgid>
<msgtext>sample string 3</msgtext>
<mtype>sample string 2</mtype>
<schoolid>1</schoolid>
</sms_templates_new>
</ArrayOfsms_templates_new>