发送短信
测试中
POST
/app/api/v1/sms/send
请求参数
Header 参数
Authorization
string
必需
示例值:
token
Body 参数application/json
phone
string
手机号
phoneCode
string
手机 国家区号
content
string
短信内容
countryId
string
国家id
示例
{
"phone": "19868453881",
"phoneCode": "86",
"content": "短信内容",
"countryId":86
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '45.79.68.121:6688/app/api/v1/sms/send' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone": "19868453881",
"phoneCode": "86",
"content": "短信内容",
"countryId":86
}'
返回响应
🟢200成功
application/json
Body
code
string
2000 成功
message
string
必需
示例
{
"code": "string",
"message": "string"
}
修改于 2023-08-25 10:16:49