Sending SMS, Viber, Flash SMS, WAP-Push
Sending SMS, Viber, Flash SMS, WAP-Push
POST
http://lk.mysmpp.ru/json
Headers
Name | Type | Description |
---|---|---|
Content-type* | String |
|
Request Body
Name | Type | Description |
---|---|---|
login* | String | Your login in the system |
password* | String | Your password in the system |
token* | String | You can use a secret key instead of login and password. To obtain it, please contact your manager. |
message.type_send_1* | String | Type of message to be sent |
message.sender* | String | SMS sender. This is the value that will be displayed on the subscriber's phone in the SMS from whom field |
message.phones.phone* | Int | Number of the subscriber to whom the SMS is addressed |
message.phones.client_id_sms | Int | Number assigned by the client Allows to avoid repeated sending. If an SMS with the same number has already been sent from this account, it will not be sent again, but the number of the previously sent SMS will be returned. |
message.text* | String | Regular SMS text or WAP link description |
message.phones.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 If not set, the SMS has a maximum lifetime. |
Deciphering parameters in query responses
Parameter | Data type | Description |
---|---|---|
state | String | Message status ("send"), if SMS has been sent |
id_sms | Int | SMS message number. It is used to check the status of SMS. If an error occurred while sending SMS, id_sms is not transmitted |
error | String | Error text for response status 200:
Error text at response status 400:
|
Example of a sending request
Last updated