5. Third Party APP Push Message - UniqueStudio/open-platform GitHub Wiki

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