POST api/SMS/SendByUserId

短信发送(新通过Passport,传递用户id)

Request Information

URI Parameters

None.

Body Parameters

SMSUserIdRequest
NameDescriptionTypeAdditional information
UserListId

Collection of string

None.

Content

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserListId": [
    "sample string 1",
    "sample string 2"
  ],
  "Content": "sample string 1"
}

application/xml, text/xml

Sample:
<SMSUserIdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yidu.Model.TO.Request">
  <Content>sample string 1</Content>
  <UserListId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </UserListId>
</SMSUserIdRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultOfEntityResponseOfSMSSendVO
NameDescriptionTypeAdditional information
Code

ApiCode

None.

Message

string

None.

Body

EntityResponseOfSMSSendVO

None.

IsSuccess

boolean

None.

SubCode

SubCode

None.

SubMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 0,
  "Message": "sample string 1",
  "Body": {
    "Entity": {
      "SuccessList": [
        "sample string 1",
        "sample string 2"
      ],
      "ErrorList": [
        "sample string 1",
        "sample string 2"
      ],
      "IsSuccess": true
    }
  },
  "IsSuccess": true,
  "SubCode": 0,
  "SubMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ApiResultOfEntityResponseOfSMSSendVOx3AL3METrUIxL1Kj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yidu.Model.TO">
  <Body xmlns:d2p1="http://schemas.datacontract.org/2004/07/Yidu.Model.TO.Response">
    <d2p1:Entity xmlns:d3p1="http://schemas.datacontract.org/2004/07/Yidu.Model.VO">
      <d3p1:ErrorList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d3p1:ErrorList>
      <d3p1:IsSuccess>true</d3p1:IsSuccess>
      <d3p1:SuccessList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d3p1:SuccessList>
    </d2p1:Entity>
  </Body>
  <Code>Success</Code>
  <Message>sample string 1</Message>
  <SubCode>Success</SubCode>
  <SubMessage>sample string 2</SubMessage>
</ApiResultOfEntityResponseOfSMSSendVOx3AL3METrUIxL1Kj>