-
Notifications
You must be signed in to change notification settings - Fork 7
5. Third Party APP Push Message
Fred Liang edited this page Oct 22, 2018
·
2 revisions
Get SMS Template.
URL : https://open.hustunique.com/message/sms/template
Method : GET
Auth required : AccessKey
Code : 200 OK
Content example
{
"code": 200,
"data": [{
"id": 96385,
"text": "您注册{1}的验证码是{2}",
"status": 0,
"reply": "",
"type": 0,
"international": 0,
"apply_time": "2018-03-18 15:41:18"
}],
"message": "OK"
}
Send SMS.
URL : https://open.hustunique.com/message/sms
Method : POST
Auth required : AccessKey
{
"phone":"17371266666",
"template": 96385,
"param_list":["contentashd","ahsudhai"]
}
Code : 200 OK
Content example
{
"code": 200,
"message": "OK"
}
Send Email.
URL : https://open.hustunique.com/message/sms/status
Method : GET
Auth required : AccessKey
Code : 200 OK
Content example
"code": 200,
"data": [
{
"id": 1,
"user_receive_time": "2018-09-08 04:08:23",
"nationcode": "86",
"mobile": "17371266666",
"report_status": "SUCCESS",
"errmsg": "DELIVRD",
"description": "用户短信接收成功",
"sid": "8:WxdVDMdhaUGsqFgDrcP20180908"
}
],
"message": "OK"
}
Send Email.
URL : https://open.hustunique.com/message/sms/reply
Method : GET
Auth required : AccessKey
Code : 200 OK
Content example
{
"code": 200,
"data": [
{
"id": 1,
"extend": "",
"mobile": "17371266666",
"nationcode": "86",
"sign": "联创团队",
"text": "emmmmmm",
"time": 1536349669
}
],
"message": "OK"
}
Send Email.
URL : https://open.hustunique.com/message/mail
Method : POST
Auth required : AccessKey
{
"name":"Addressee name",
"to":"[email protected]",
"subject":"Email subject",
"content":"Email content"
}
Code : 200 OK
Content example
{
"code": 200,
"message": "OK"
}