How to connect SMS interface

Source: Internet
Author: User
Tags http post http request sql injection

SMS Interface series embedded type, standardized development package, convenient and enterprise existing website, APP, CRM, OA, ERP and other systems seamless docking. Support VB, PHP, Delphi,. NET, VC, JAVA and other mainstream development language and Windows, Linux, Unix and other operating environment communication development interface, enterprise data security is very high, reduce development cycle and cost, Easy connectivity for short message gateways and enterprise mobile commerce applications. Applicable to website member mobile authentication, app security verification, order notification, courier tracking, member reminders and other SMS applications.

The Send interface supports HTTP and WebService

HTTP Interface Protocol

1. Send interface

The URL address requested when the Client interface program is invoked, using an HTTP POST interface

Request Address: Http://dc.28inter.com/sms.aspx Correspondence UTF-8

Http://dc.28inter.com/smsGBK.aspx Correspondence GB2312

Parameter name meaning Description
Userid Enterprise ID User ID, generated when the account is assigned by admin
Account User account User account, assigned by system administrator
Password account password Password for user account
Mobile All called numbers. Send a target number, separated by commas between multiple numbers
Content Send content Text message content, content needs UTF-8 encoding
Sendtime Timed Delivery time Empty indicates send immediately, scheduled send format 2010-10-24 09:08:10
Action Send Task command Set to fixed: send
Extno Extension sub-number Please ask the configured channel to support the extension sub-number, if not support, please fill in the blanks. The child number can only be numeric and up to 5 digits

Example: action=send&userid=12&account= account &password= password &mobile=15012345678,13512345678&content= content &sendtime=&extno=

return value
Return Info Tip Description
Ok Submit Success
The user name or password cannot be empty The user name or password submitted is empty
Send content contains SQL injection characters Contains SQL injection characters
Incorrect user name or password Indicates a bad user name or password
SMS number cannot be empty The called number that was submitted is empty
SMS content cannot be empty Send content is empty
Contains illegal characters Indicates that illegal characters that are not allowed to be sent are checked
Sorry, the amount you are currently sending is greater than your current balance When the payment method is prepaid, check that the account balance is insufficient
Other errors Errors in other database operations

After receiving the HTTP request sent by the client, returns the processing result in XML. The format is:

<xml version= "1.0" encoding= "Utf-8" >

<returnsms>

<returnstatus><status></returnstatus >----------Return status Value: Successful return success failed return: Faild

<message><message></message>----------Return information

<remainpoint><remainpoint></remainpoint>----------return Balance

<taskID><taskID></taskID>-----------Returns the sequence ID of this task

<successcounts><successcounts></successcounts>--Successful Message count: Returns the number of successful messages after successful submission

</returnsms>

2, balance and sent volume query interface

Request Address: Http://dc.28inter.com/sms.aspx Correspondence UTF-8

Http://dc.28inter.com/smsGBK.aspx Correspondence GB2312

Parameter name meaning Description
Userid Enterprise ID User ID, generated when the account is assigned by admin
Account User account User account, assigned by system administrator
Password account password Password for user account
Action Task Name Set to fixed: overage

Example: action=overage&userid=12&account= account &password= Password

return value
Return Info Tip Description
Return success Successful query will return the appropriate payment method, account usage number, total recharge points
The user name or password cannot be empty The user name or password submitted is empty
Incorrect user name or password Indicates a bad user name or password

Returns the return of the processing result as XML. The format is:

<xml version= "1.0" encoding= "Utf-8" >

<returnsms>

<returnstatus><status></returnstatus>-------Return status value: Successful return success failed return: Faild

<message><message></message>--------------return information tips

<payinfo><payinfo></payinfo>--------------Pay after return payment method, prepaid fee

<overage><overage></overage>-------------return Balance

<sendTotal><sendTotal></sendTotal>----Return total number of points when the payment method is prepaid is to return the total number of recharge points

</returnsms>

3. Illegal keyword search

Request Address: Http://dc.28inter.com/sms.aspx Correspondence UTF-8

Http://dc.28inter.com/smsGBK.aspx Correspondence GB2312

Parameter name meaning Description
Userid Enterprise ID User ID, generated when the account is assigned by admin
Account User account User account, assigned by system administrator
Password account password Password for user account
Action Task Name Set to fixed: Checkkeyword
Content Detect sending Content What you need to send

Example: action=checkkeyword&userid=12&account= account &password= password &content= content

return value
Return Info Tip Description
The user name or password cannot be empty The user name or password submitted is empty
Incorrect user name or password Indicates a bad user name or password
Contains illegal characters Check it out to include illegal keywords
Illegal characters are not included Illegal keywords not checked out

Returns the return of the processing result as XML. The format is:

<xml version= "1.0" encoding= "Utf-8" >

<returnsms>

<message>message</message>--------------return information tips

</returnsms>

4. Status Report Interface

Request Address: Http://dc.28inter.com/statusApi.aspx Correspondence UTF-8

Http://dc.28inter.com/statusApi.aspx Correspondence GB2312

Parameter name meaning Description
Userid Enterprise ID User ID, generated when the account is assigned by admin
Account User account User account, assigned by system administrator
Password account password Password for user account
Action Task Name Set to fixed: query

Example: action=query&userid=12&account= account &password= Password

Returns the return of the processing result as XML. The format is:

<xml version= "1.0" encoding= "Utf-8" >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.