发送短信测试
开发中
本地
本地
POST
http://127.0.0.1:9999/api/v1/notification/services/config/sms/test
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
phone_number
string
必需
content
string
参数
notice_type
string
通知类型
sms_config
object
短信配置
provider
string
服务商
aliyun_sms_config
object
必需
示例
{
"phone_number": "string",
"content": "string",
"notice_type": "string",
"sms_config": {
"provider": "string",
"aliyun_sms_config": {
"access_key_id": "string",
"access_key_secret": "string",
"endpoint": "string",
"sign_name": "string",
"template_code": "string"
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:9999/api/v1/notification/services/config/sms/test' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
bizId
string
必需
示例
{
"code": 200,
"message": "操作成功",
"data": {
"bizId": "660617945028062067^0"
}
}
修改于 2025-04-19 01:57:58