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

837 B
Raw Permalink Blame History

SMSSenderService

短信发送服务


sendSMS

发送短信

  • 角色:admin
  • HTTPPOST https://backend.dooki.cloud/SMSSenderService/sendSMS
  • RPCrpc sendSMS(SendSMSRequest) returns (SendSMSResponse);

请求对象 (SendSMSRequest)

{
  "mobile": "string // 手机号",
  "body": "string // 内容",
  "code": "string // 验证码",
  "type": "string // 渠道类型webHook ...",
  "paramsJSON": "bytes // 参数"
}

响应对象 (SendSMSResponse)

{
  "isOk": "bool // 是否成功",
  "result": "string // 发送返回内容,只有失败时才会有数据"
}

调用示例

curl -X POST "https://backend.dooki.cloud/SMSSenderService/sendSMS" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'