Jpush 服务器端短信支持的问题
在调试JPUSH 短信推送时, 遇到了这样的问题, 我的 发送内容配置如下:
{
"platform": "all",
"audience": "all",
"sms_message":{
"content":"testing on send",
"delay_time":0
},
"options": {
"time_to_live": 60,
"apns_production": false
}
}
打包转换后结果为:
{"platform": "all", "audience": {"registration_id": ["13165ffa4e0b5d890c0"]}, "sms_message": {"content": "testing on send", "delay_time": 0}, "options": {"time_to_live": 60, "apns_production": false}}
返回结果为 :
the header is {'connection': 'keep-alive', 'content-type': 'application/json;charset:utf-8', 'user-agent': 'jpush-api-python-client'}
{'cookies': <<class 'requests.cookies.RequestsCookieJar'>[]>, '_content': '{"error": {"message": "Missing parameter", "code": 1002}}', 'headers': {'X-Rate-Limit-Remaining': '599', 'Transfer-Encoding': 'chunked', 'Server': 'nginx', 'Connection': 'keep-alive', 'X-Rate-Limit-Reset': '60', 'Date': 'Mon, 16 May 2016 09:38:52 GMT', 'X-Rate-Limit-Limit': '600', 'Content-Type': 'application/json'}, 'url': u'https://api.jpush.cn/v3/push', 'status_code': 400, '_content_consumed': True, 'encoding': None, 'request': <PreparedRequest [POST]>, 'connection': <requests.adapters.HTTPAdapter object at 0x4513150>, 'elapsed': datetime.timedelta(0, 0, 197545), 'raw': <requests.packages.urllib3.response.HTTPResponse object at 0x4529b90>, 'reason': 'BAD REQUEST', 'history': []}
Etest Done
报错中有 “ {"error": {"message": "Missing parameter", "code": 1002}}' " 请问我少了什么参数呢?
有需要什么配置才能进行短信推送测试? 只有对运营商付费才能进行服务器端的代买调试吗? 网上找了很多,都是客户端SDK的短信集成例子,没有服务器端的调试案例, 我现在开发的目标是在服务器端生成验证码后通过极光短信API推送,但一直没通过,求支持~