Files
pyGoEdge-UserPanel/reference/goedge 文档/SMSSenderService.md
2025-11-18 03:36:49 +08:00

46 lines
837 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# SMSSenderService
> 短信发送服务
---
## sendSMS
> 发送短信
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/SMSSenderService/sendSMS`
- RPC`rpc sendSMS(SendSMSRequest) returns (SendSMSResponse);`
**请求对象 (`SendSMSRequest`)**
```json
{
"mobile": "string // 手机号",
"body": "string // 内容",
"code": "string // 验证码",
"type": "string // 渠道类型webHook ...",
"paramsJSON": "bytes // 参数"
}
```
**响应对象 (`SendSMSResponse`)**
```json
{
"isOk": "bool // 是否成功",
"result": "string // 发送返回内容,只有失败时才会有数据"
}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/SMSSenderService/sendSMS" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---