Skip to content

5. Third Party APP Push Message

Fred Liang edited this page Oct 22, 2018 · 2 revisions

5.1 Get SMS Template

Get SMS Template.

URL : https://open.hustunique.com/message/sms/template

Method : GET

Auth required : AccessKey

Success Response

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"
}

5.2 Send SMS

Send SMS.

URL : https://open.hustunique.com/message/sms

Method : POST

Auth required : AccessKey

Request Content

{
    "phone":"17371266666",
    "template": 96385,
    "param_list":["contentashd","ahsudhai"] 
}

Success Response

Code : 200 OK

Content example

{
    "code": 200,
    "message": "OK"
}

5.3 Get SMS Send Status

Send Email.

URL : https://open.hustunique.com/message/sms/status

Method : GET

Auth required : AccessKey

Success Response

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"
}

5.4 Get SMS Reply

Send Email.

URL : https://open.hustunique.com/message/sms/reply

Method : GET

Auth required : AccessKey

Success Response

Code : 200 OK

Content example

{
	"code": 200,
	"data": [
		{
			"id": 1,
			"extend": "",
			"mobile": "17371266666",
			"nationcode": "86",
			"sign": "联创团队",
			"text": "emmmmmm",
			"time": 1536349669
		}
	],
	"message": "OK"
}

5.5 Send Email

Send Email.

URL : https://open.hustunique.com/message/mail

Method : POST

Auth required : AccessKey

Request Content

{
	"name":"Addressee name",
	"to":"[email protected]",
	"subject":"Email subject",
	"content":"Email content"
}

Success Response

Code : 200 OK

Content example

{
    "code": 200,
    "message": "OK"
}