GET api/Sms/LoadTemplate

加载短信模板编号列表 短信模板编号从短信服务商处申请

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

加载短信模板编号列表 短信模板编号从短信服务商处申请

JsonRtnDtoOfListOfSmsTemplate
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Collection of SmsTemplate

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": [
    {
      "Id": 1,
      "TemplateName": "sample string 2",
      "TemplateID": "sample string 3",
      "TemplateSample": "sample string 4"
    },
    {
      "Id": 1,
      "TemplateName": "sample string 2",
      "TemplateID": "sample string 3",
      "TemplateSample": "sample string 4"
    }
  ]
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":[{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"},{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"}]}

application/xml, text/xml

Sample:
<JsonRtnDtoOfArrayOfSmsTemplatemEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:SmsTemplate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:TemplateID>sample string 3</d2p1:TemplateID>
      <d2p1:TemplateName>sample string 2</d2p1:TemplateName>
      <d2p1:TemplateSample>sample string 4</d2p1:TemplateSample>
    </d2p1:SmsTemplate>
    <d2p1:SmsTemplate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:TemplateID>sample string 3</d2p1:TemplateID>
      <d2p1:TemplateName>sample string 2</d2p1:TemplateName>
      <d2p1:TemplateSample>sample string 4</d2p1:TemplateSample>
    </d2p1:SmsTemplate>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfArrayOfSmsTemplatemEDjlcEG>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":[{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"},{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"}]});