旺旺转码
    旺旺转码
    • 使用教程
      • 转码教程
      • 发码教程
    • [旺旺]发送短信
      GET
    • [旺旺]获取发送结果
      GET
    • [旺旺]获取发送短信列表
      GET
    • [旺旺]获取短信
      GET
    • [兼容新四方]获取短信
      GET
    • [兼容新四方]发送短信
      POST
    • [兼容新四方]获取发送短信列表
      GET

      [兼容新四方]发送短信

      POST
      http://sms.wangsms.com:9500/api/send
      带上ROOM对接码,COM口,目标手机号,需要发送的短信内容

      请求参数

      Header 参数
      Content-Type
      string 
      可选
      示例值:
      application/json
      Body 参数application/json
      com
      string 
      端口号
      必需
      phone
      string 
      接收号码
      必需
      content
      string 
      发送内容
      必需
      channel
      string 
      token
      必需
      示例
      {
          "com": "1",
          "phone": "10086",
          "content": "查话费",
          "channel": "af92adceea0041f5881b7c7cbb3fc187"
      }

      示例代码

      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://sms.wangsms.com:9500/api/send' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "com": "1",
          "phone": "10086",
          "content": "查话费",
          "channel": "af92adceea0041f5881b7c7cbb3fc187"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      示例
      {}
      修改于 2023-09-03 19:37:05
      上一页
      [兼容新四方]获取短信
      下一页
      [兼容新四方]获取发送短信列表
      Built with