Definition
POST http://app.bsg.hk/xml
Required Parameters
Parameter |
Description |
login |
Username |
password |
SMPP/API-password |
type |
"sms" |
phone |
The telephone number that you want to do a network query on. (Required) |
client_id_sms |
Client reference ID |
number_sms |
The serial number of the subscriber in an XML document. (Required) |
Example request
<? xml version = "1.0" encoding = "utf-8"?> <request>
<message type = "sms">
<sender>sender</sender>
<text>sms text</text>
<abonent phone = "380631231233" client_id_sms = "3431" number_sms = "1"/>
<abonent phone = "380633213211" client_id_sms = "3425" number_sms = "2"/>
</message>
<security>
<login value = "login"/>
<password value = "password"/>
</security>
</request>
Returns
Returns an XML document with message ID if the request was successful. If the request failed, an error will be returned.
Parameter |
Description |
number_sms |
The serial number of the subscriber in an XML document. |
id_sms |
Message ID |
id_turn |
ID of the SMS delivery turn. This parameter is needed for compatibility. |
parts |
The number of parts the text message is made of. |
information |
SMS status ("send"), if the text message has been sent. |
Example response
<?xml version = "1.0" encoding = "utf-8"?> <response>
<information number_sms = "1" id_sms = "366" id_turn = "1428476741" parts = "1"> send</information>
<information number_sms = "2" id_sms = "367" id_turn = "1428476741" parts = "1"> send </information>
</response>
Comments
0 comments
Article is closed for comments.