Значення
POST http://app.bsg.hk/xml
Обов'язкові параметри
username
SMPP/API-password
"sms"
The telephone number you want to do a network query on. Required
Client Reference ID
The serial number of the subscriber in an XML document. Required
Приклад запиту
<? 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>
Повернення
Повертає документ XML з ідентифікатором повідомлення, якщо запит був успішним. Якщо запит не вдався, помилка буде повернута.
The serial number of the subscriber in an XML document.
Message ID
SMS delivery turn ID. This parameter is needed for compatibility.
The number of parts the text message is made of.
SMS status («send»), if the text message has been sent.
Приклади відповідей
<?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>