POST api/sys/sms/send

發送短信

Request Information

URI Parameters

None.

Body Parameters

SMSRqContract
NameDescriptionTypeAdditional information
mobiles

接收手機號

Collection of string

None.

subject

短信標題

string

None.

content

知信內容

string

None.

provider

短信提供商,默認為every8d(every8d)

string

None.

relationid

關聯ID

string

None.

itemtype

短信類型(業務板塊)

string

None.

memberid

發送用戶ID

integer

None.

createip

客戶端IP

string

None.

Request Formats

application/json, text/json

Sample:
{
  "mobiles": [
    "sample string 1",
    "sample string 2"
  ],
  "subject": "sample string 1",
  "content": "sample string 2",
  "provider": "sample string 3",
  "relationid": "sample string 4",
  "itemtype": "sample string 5",
  "memberid": 6,
  "createip": "sample string 7"
}

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 'SMSRqContract'.

Response Information

Resource Description

發送短信

ReturnResultOfBoolean
NameDescriptionTypeAdditional information
data

boolean

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": true,
  "code": 2,
  "message": "sample string 3"
}