Отправить XML
Значение
POST http://api.notificore.ru/xml
Обязательные параметры
Parameter | Description |
login value | username |
password value | SMPP/API-password |
type | "sms" |
phone | The telephone number 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 |
Пример запроса
<? 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 an XML document with a 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 | SMS delivery turn ID. 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. |
Примеры ответов
<?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>