POST api/Sms/SaveAsync

保存Sms配置

Request Information

URI Parameters

None.

Body Parameters

SmsConfig
NameDescriptionTypeAdditional information
Id

编号

integer

None.

AppId

AppId https://console.cloud.tencent.com/smsv2/app-manage

string

None.

SecretId

短信服务商提供 https://console.cloud.tencent.com/cam/capi

string

None.

SecretKey

密钥 短信服务商提供 https://console.cloud.tencent.com/cam/capi

string

None.

Sign

短信签名,从短信服务商申请 https://console.cloud.tencent.com/smsv2/csms-sign

string

None.

LastUpdatedTime

最后更新时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AppId": "sample string 2",
  "SecretId": "sample string 3",
  "SecretKey": "sample string 4",
  "Sign": "sample string 5",
  "LastUpdatedTime": "2024-09-25T00:11:52.4374848+08:00"
}

text/html

Sample:
{"Id":1,"AppId":"sample string 2","SecretId":"sample string 3","SecretKey":"sample string 4","Sign":"sample string 5","LastUpdatedTime":"2024-09-25T00:11:52.4374848+08:00"}

application/xml, text/xml

Sample:
<SmsConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <AppId>sample string 2</AppId>
  <Id>1</Id>
  <LastUpdatedTime>2024-09-25T00:11:52.4374848+08:00</LastUpdatedTime>
  <SecretId>sample string 3</SecretId>
  <SecretKey>sample string 4</SecretKey>
  <Sign>sample string 5</Sign>
</SmsConfig>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存Sms配置

JsonRtnDtoOfSmsConfig
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

SmsConfig

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": 1,
    "AppId": "sample string 2",
    "SecretId": "sample string 3",
    "SecretKey": "sample string 4",
    "Sign": "sample string 5",
    "LastUpdatedTime": "2024-09-25T00:11:52.4374848+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"AppId":"sample string 2","SecretId":"sample string 3","SecretKey":"sample string 4","Sign":"sample string 5","LastUpdatedTime":"2024-09-25T00:11:52.4374848+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfSmsConfigmEDjlcEG 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:AppId>sample string 2</d2p1:AppId>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:LastUpdatedTime>2024-09-25T00:11:52.4374848+08:00</d2p1:LastUpdatedTime>
    <d2p1:SecretId>sample string 3</d2p1:SecretId>
    <d2p1:SecretKey>sample string 4</d2p1:SecretKey>
    <d2p1:Sign>sample string 5</d2p1:Sign>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfSmsConfigmEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"AppId":"sample string 2","SecretId":"sample string 3","SecretKey":"sample string 4","Sign":"sample string 5","LastUpdatedTime":"2024-09-25T00:11:52.4374848+08:00"}});