Request to receive the list of scheduled SMS

Request to receive the list of scheduled SMS

POST http://lk.mysmpp.ru/xml/list_scheduled.php

Headers

NameTypeDescription

Content-type*

String

text/xml; charset=utf-8;

Request Body

NameTypeDescription

login.value*

String

Your login in the system

scheduled.page*

Int

Page number. The entire list of scheduled SMS is divided into pages. You cannot request the whole list. You can only request an individual page. The numbering starts with one

token.value*

String

You can use a secret key instead of login and password. To obtain it, please contact your manager

password.value*

String

Your password in the system

<?xml version="1.0" encoding="utf-8" ?>
<response>
     <phones page="1" num_pages="100">
          <scheduled id_sms="1234" time_put_turn="2011-11-14 12:42:40" originator="kosty" phone="79612242243" type_sms="sms" text_sms="ТекстSMS" count_sms="2" name_delivery="Newsletter title" time_send="2011-11-14 21:00" validity_period="2011-11-17 21:00:00" />
          <scheduled id_sms="1235" time_put_turn="2011-11-14 12:42:40" originator="kosty" phone="79612242244" type_sms="sms" text_sms="ТекстSMS" count_sms="2" name_delivery="Newsletter title" time_send="2011-11-14 21:00" validity_period="2011-11-17 21:00:00" />

     </phones>
</response>

Deciphering parameters in query responses

ParameterData typeDescription

phones.page

Int

Page number

phones.num_pages

Int

Total pages

phones.scheduled.id_sms

Int

SMS number. Used to delete a scheduled SMS

phones.scheduled.time_put_turn

Int

Time to add to the scheduler

phones.scheduled.originator

String

SMS sender. This is the value that will be displayed on the subscriber's phone in the SMS from field

phones.scheduled.phone

Int

Number of the subscriber to whom the SMS is addressed

phones.scheduled.type

String

SMS message type:

  • sms - regular SMS

  • flashsms - Flash SMS

  • wappush - WAP-Push

  • vcard - business card (vCard)

phones.scheduled.text_sms

String

SMS text

phones.scheduled.count_sms

Int

Number of SMS message parts

phones.scheduled.name_delivery

String

Newsletter title

phones.scheduled.time_send

Date

The date and time of the shipment in the format:

YYYY-MM-DD HH:MM

where, YYYY-year, MM-month, DD-day, HH-hours,

MM-minutes

phones.scheduled.validity_period

Date

The date and time after which no attempts will be made to deliver SMS in the format:

YYYY-MM-DD HH:MM:SS

where, YYYY-year, MM-month, DD-day, HH-hours,

MM-minutes

SS-seconds

error

String

The error text can take the following values:

  • Incorrect XML document format

  • Incorrect login or password

  • POST data is missing

Example XML request

<?xml  version="1.0" encoding="utf-8" ?>
<request>
     <security>
          <login value="login" />
          <password value="password" />
     </security>
     <scheduled page=”1”/>
</request>

Last updated