Sending SMS, Viber, Flash SMS, WAP-Push
Sending SMS, Viber, Flash SMS, WAP-Push
POST
http://lk.mysmpp.ru/xml
Headers
Request Body
<?xml version="1.0" encoding="utf-8" ?>
<response>
<information number_sms="1" id_sms="SMS ID in the system to check the status" parts="2">Status/error message</information>
<information number_sms="2" id_sms="SMS ID in the system to check the status" parts="2">Status/error message</information>
<information number_sms="3" id_sms="SMS ID in the system to check the status" parts="2">Status/error message</information>
…
</response>
<?xml version="1.0" encoding="utf-8"?>
<response>
<error>Error message</error>
</response>
Deciphering parameters in query responses
Example XML request
<?xml version="1.0" encoding="utf-8" ?>
<request>
<message type_send_1="viber or sms" type_send_2="viber or sms" type="flashsms or silence or sms or wappush or vcard">
<sender_viber>Sender of Viber message</sender_viber>
<text_viber>Message text</text_viber>
<button_viber>Button text</button_viber>
<action_viber>Link for button</action_viber>
<image_viber>Address of image</image_viber>
<sender>Sender 1</sender>
<text>Message text 1</text>
<url>Address for WAP Push or vCard</url>
<name>Name for vCard</name>
<phone cell="79033256699" work="79033256699" fax="79033256699"/>
<email>E-mail vCard</email>
<position>Job vCard</position>
<organization>Organization vCard</organization>
<address post_office_box="P.O. Box" street="Street" city="City" region="Region" postal_code="Index" country="Country" />
<additional>Additional vCard information</additional>
<abonent phone="79033256699" number_sms="1" client_id_sms="101" time_send="2001-12-31 12:34:54" validity_period="2001-12-31 15:34:54" validity_period_viber="2001-12-31 15:34:54" />
<abonent phone="79033256699" number_sms="2" client_id_sms="102" time_send="2001-12-31 12:35:54" />
...
<abonent phone="79033256699" number_sms="10" client_id_sms="110" time_send="" />
</message>
<message>
<sender>Sender 2</sender>
<text>Message Text 2</text>
<abonent phone="79033256699" number_sms="11" client_id_sms="111" />
<abonent phone="79033256699" number_sms="12" client_id_sms="112" />.
...
<abonent phone="79033256699" number_sms="20" client_id_sms="120" />
</сообщение
...
<security>
<login value="login" />
<password value="password" />
</security>
</request>
Last updated