新增手机号黑名单
更新时间:2023-07-21
URL
/sms/v3/blacklist
HTTP Method
POST
请求Body参数
参数名称 | 类型 | 是否必需 | 描述 | 取值示例 |
---|---|---|---|---|
type | String | 是 | 黑名单类型 MerchantBlack:全局黑名单 SignatureBlack:签名黑名单 |
MerchantBlack |
phone | String | 是 | 加黑手机号。支持多个,多个手机号之间要用英文逗号隔开,一次请求最多100个,手机号格式为标准11位国内手机号 | 13800000000,13800000001,13800000002 |
smsType | String | 否 | 短信类型(当type为SignatureBlack必填)。见[api参考/短信类型]。 | CommonNotice |
signatureIdStr | String | 否 | 签名ID(当type为SignatureBlack必填) | sms-signQxkiwz88470 |
响应参数
void
请求示例
POST /sms/v3/blacklist HTTP/1.1
Host: 127.0.0.1:8420
Authorization: bce-auth-v1/203069ff6d1145548efbccc0aeaf8b5a/2023-07-14T03:37:35Z/1800/host;x-bce-date/864b39a36411f975c1a9781ee748f19c17cbba94fb050551a15f9f9971ea9bba
User-Agent: bce-sdk-java/0.10.108/Mac_OS_X/10.15.2/Java_HotSpot(TM)_64-Bit_Server_VM/25.192-b12/1.8.0_192/zh/
Date: Fri, 14 July 2023 03:37:35 GMT
Content-Type: application/json
x-bce-date: 2023-07-14T03:37:35Z
Content-Length: 129
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
{
"phone": "17600000000",
"type": "SignatureBlack",
"smsType": "CommonNotice",
"signatureIdStr": "sms-sign-hHYgtS57924"
}
响应示例
HTTP/1.1 200 OK
x-bce-request-id: 2513d3aa-294c-4860-971b-07e7a24b07d8
Cache-Control: no-cache
Content-Length: 0
Date: Fri, 14 July 2023 07:19:48 GMT
Server: BWS