This interface provides HTTP and WebService implementations.
For users using HTTP protocol, it is recommended to use the Post method in http to connect to Api address for data transmission in consideration of data security and data capacity.
Submission address: http://118.178.228.184:9001/smsSend.do
Send interface submission method: POST/GET
Function: send SMS
input parameter | describe |
---|---|
username | User name (required) |
password | Password (required) MD5 (username+MD5 (pwd)) Username is the user name, pwd is the plaintext password, and 32-bit lowercase MD5 encryption is used |
mobile | Mobile phone numbers. Multiple mobile phone numbers are separated by half corners, such as 13899999999, 1368888888 (maximum submission is 1W, maximum GET method is 500, required) |
content | Send content (required) |
dstime | Timing time. If it is blank, it means sending immediately (optional) Format: yyyy MM dd HH: mm: ss |
ext | User defined extension (optional) needs to submit the opening extension signature to the customer manager |
msgid | Customer defined message id (optional) |
msgfmt | When submitting message encoding format (optional) is blank, it defaults to UTF-8 |
Example:
http://118.178.228.184:9001/smsSend.do?username=jckj&password;=MD5(jckj+MD5(123456))&mobile;=13911000000&content;=中国
contents String content="Chinese characters“;
String content = "汉字";
content = URLEncoder.encode(content, "UTF-8");
Submission address:http://118.178.228.184:9001/sendData.do
Send interface submission method: POST
Function: submit personalized SMS
input parameter | describe |
---|---|
username | User name (required) |
password | Password (required) MD5 (username+MD5 (pwd)) Username is the user name, pwd is the plaintext password, and 32-bit lowercase MD5 encryption is used |
mobile | Mobile phone numbers. Multiple mobile phone numbers are separated by half corners, such as 13899999999, 1368888888 (maximum submission is 1W, maximum GET method is 500, required) |
content | Send content (required) |
dstime | Timing time. If it is blank, it means sending immediately (optional) Format: yyyy MM dd HH: mm: ss |
ext | User defined extension (optional) needs to submit the opening extension signature to the customer manager |
msgid | Customer defined message id (optional) |
msgfmt | When submitting message encoding format (optional) is blank, it defaults to UTF-8 |
Example:
String content1 = "xu test information 1%";
String content2 = "xx test information 2%";
String content3 = "ww test information 3%";
String charset = "UTF-8";
(1)The contents are encoded separately in English and separated into strings
String content = URLEncoder.encode (content1,charset) +","+ URLEncoder.encode(content2, charset)+","+URLEncoder.encode(content3,charset);
(2) Encode the whole string twice
URLEncoder.encode(URLEncoder.encode(content,charset), charset))
Submission address:http://118.178.228.184:9001/balanceQuery.do
Finance interface submission method: POST/GET
Function: query the remaining number of SMS
input parameter | describe |
---|---|
username | User name (required) |
password | Password (MD5 (username+MD5 (password))) (required) |
Example:
http://118.178.228.184:9001/balanceQuery.do?username=userccc&password=MD5(user+MD5(XXXX))
input parameter | describe |
---|---|
XXXXX | XXXXX represents the number of remaining pieces of the product |
-1 | Username or password incorrect |
-2 | Required option is blank |
Submission address:http://118.178.228.184:9001/passwordUpade.do
Interface submission method: POST/GET
Function: Update password
input parameter | describe |
---|---|
username | User name (required) |
password | Password (MD5 (username+MD5 (password))) (required) |
newpassword | New Password |
Push method: http post
Number of push pieces: multiple pieces
Push format: report=number | status code | SMS ID | extension code | receiving time; Number | Status code | SMS ID | Extension code | Receiving time
Note: English semicolon is used in the middle of multiple reports (;) Separated. After receiving successfully, the playback interface must reply 0, otherwise it will be pushed repeatedly.
input parameter | describe |
---|---|
DELIVRD | Status succeeded |
UNDELIV | Status failed |
EXPIRED | SMS timeout due to the user's long shutdown or not in the service area was not submitted to the user's mobile phon |
REJECTD | Message rejected for some reason |
MBBLACK | Black sign |
Push method: http post
Number of push pieces: multiple pieces
Push format: deliver=content | extension code | encoding format | number | user name | time
The default encoding format is UTF-8. If the content is garbled, please use the decoding URLDecoder.decode (strTest, "UTF-8");
Note: English semicolon is used in the middle of multiple reports (;) Separated. After receiving successfully, the playback interface must reply 0, otherwise it will be pushed repeatedly.
AFTER SALAS HOTLINE
400-826-8833
Official Account
DS Cloud Chamberlain
Official microblog
© 2024 NANJING DINSTECH INFORMATION TECHNOLOGY Co.,LTD. ALL RIGHTS RESERVED | 苏ICP备13041208号-1