POST api/SMS/SendSms

Request Information

URI Parameters

None.

Body Parameters

SmsLog
NameDescriptionTypeAdditional information
SmsId

globally unique identifier

None.

SendPhone

string

None.

SendContent

string

None.

SendDate

date

None.

ReturnCode

integer

None.

ReturnMsg

string

None.

MemberId

string

None.

MemberName

string

None.

DepartmentId

string

None.

DepartmentName

string

None.

ActionType

integer

None.

SendType

integer

None.

Note

string

None.

ReceiveMemberID

string

None.

ReceiveMemberName

string

None.

ReceiveDepartmentID

string

None.

ReceiveDepartmentName

string

None.

ReplyContent

string

None.

ReceiveTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "SmsId": "0bf74e85-84fd-49c7-b274-d1f56d2d9aae",
  "SendPhone": "sample string 2",
  "SendContent": "sample string 3",
  "SendDate": "2020-11-29T16:08:47.0425066+08:00",
  "ReturnCode": 5,
  "ReturnMsg": "sample string 6",
  "MemberId": "sample string 7",
  "MemberName": "sample string 8",
  "DepartmentId": "sample string 9",
  "DepartmentName": "sample string 10",
  "ActionType": 11,
  "SendType": 12,
  "Note": "sample string 13",
  "ReceiveMemberID": "sample string 14",
  "ReceiveMemberName": "sample string 15",
  "ReceiveDepartmentID": "sample string 16",
  "ReceiveDepartmentName": "sample string 17",
  "ReplyContent": "sample string 18",
  "ReceiveTime": "2020-11-29T16:08:47.0445088+08:00"
}

application/xml, text/xml

Sample:
<SmsLog xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.SMS">
  <ActionType>11</ActionType>
  <DepartmentId>sample string 9</DepartmentId>
  <DepartmentName>sample string 10</DepartmentName>
  <MemberId>sample string 7</MemberId>
  <MemberName>sample string 8</MemberName>
  <Note>sample string 13</Note>
  <ReceiveDepartmentID>sample string 16</ReceiveDepartmentID>
  <ReceiveDepartmentName>sample string 17</ReceiveDepartmentName>
  <ReceiveMemberID>sample string 14</ReceiveMemberID>
  <ReceiveMemberName>sample string 15</ReceiveMemberName>
  <ReceiveTime>2020-11-29T16:08:47.0445088+08:00</ReceiveTime>
  <ReplyContent>sample string 18</ReplyContent>
  <ReturnCode>5</ReturnCode>
  <ReturnMsg>sample string 6</ReturnMsg>
  <SendContent>sample string 3</SendContent>
  <SendDate>2020-11-29T16:08:47.0425066+08:00</SendDate>
  <SendPhone>sample string 2</SendPhone>
  <SendType>12</SendType>
  <SmsId>0bf74e85-84fd-49c7-b274-d1f56d2d9aae</SmsId>
</SmsLog>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SmsLog'.

Response Information

Resource Description

ExecuteResult
NameDescriptionTypeAdditional information
Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 3",
  "Code": 4,
  "StatusCode": "sample string 5",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ExecuteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>4</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 3</Msg>
  <StatusCode>sample string 5</StatusCode>
  <Success>true</Success>
</ExecuteResult>