在jasmin短信网关中发送短信失败,找不到强制参数[to]

时间:2018-11-13 08:15:04

标签: python python-2.7 sms-gateway jasmin-sms

我正在使用Jasmin SMS网关,请按照文档操作。创建用户,组,计算机和成功绑定到我的提供程序。但是当我尝试发送短信 http://127.0.0.1:6600/send?username=ojgr12hnds&password=123ggfds&to=62852740&content=hello

茉莉花响应是错误“找不到必填参数[to]。

1 个答案:

答案 0 :(得分:0)

如果您使用的是Restful API,则需要正确的JSON结构。如果是http api,请尝试使用curl测试:

curl http://127.0.0.1:6600/send? -d 'username=ojgr12hnds&password=123ggfds&to=62852740&content=hello'