POST api/SmsInfo/TencentSmsPostCallback

腾讯云短信回调

Request Information

URI Parameters

None.

Body Parameters

Collection of TencentSmsCallbackDto
NameDescriptionTypeAdditional information
user_receive_time

用户实际接收到短信的时间

string

None.

ReceiveTimeParsed

(解析后的)接收到短信的时间

date

None.

nationcode

国家(或地区)码

string

None.

mobile

手机号码

string

None.

report_status

实际是否收到短信接收状态,SUCCESS(成功)、FAIL(失败)

string

None.

errmsg

用户接收短信状态码错误信息

string

None.

description

用户接收短信状态描述

string

None.

sid

本次发送标识 ID

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<ArrayOfTencentSmsCallbackDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.CloudService.TencentCloud.Sms">
  <TencentSmsCallbackDto>
    <description>sample string 6</description>
    <errmsg>sample string 5</errmsg>
    <mobile>sample string 3</mobile>
    <nationcode>sample string 2</nationcode>
    <report_status>sample string 4</report_status>
    <sid>sample string 7</sid>
    <user_receive_time>sample string 1</user_receive_time>
  </TencentSmsCallbackDto>
  <TencentSmsCallbackDto>
    <description>sample string 6</description>
    <errmsg>sample string 5</errmsg>
    <mobile>sample string 3</mobile>
    <nationcode>sample string 2</nationcode>
    <report_status>sample string 4</report_status>
    <sid>sample string 7</sid>
    <user_receive_time>sample string 1</user_receive_time>
  </TencentSmsCallbackDto>
</ArrayOfTencentSmsCallbackDto>

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 'IEnumerable`1'.

Response Information

Resource Description

腾讯云短信回调

TencentSmsCallBackResultDto
NameDescriptionTypeAdditional information
result

错误码,0表示成功(计费依据),非0表示失败

integer

None.

errmsg

错误消息,result 非0时的具体错误信息

string

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<TencentSmsCallBackResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.CloudService.TencentCloud.Sms">
  <errmsg>sample string 2</errmsg>
  <result>1</result>
</TencentSmsCallBackResultDto>