8 (800) 700 7672|
Free in Russia
The API allows you to send messages through your projects and services over the HTTP/HTTPS, SMTP, and SMPP protocols. Ready-made libraries in different programming languages connect to your project and help you send messages from anywhere with a single command.
THE SPEED OF MAILING LISTS
SENDING A MESSAGE
Sending an SMS messageCHECKING THE STATUS
Comments in SMS messages
Sending an MMS message
Sending an e-mail message
Sending a voice message (call)
Sending a viber message
Sending a soc message
RECEIVING INCOMING MESSAGES
ERROR CODES IN THE STATUS
Sending a message
Sending an SMS messageTo send an SMS message, use the SUBMIT_SM command according to the specification.
The following encodings are supported:
To use the ISO-8859-1 (ASCII) encoding instead of GSM when connecting, you need to specify:
You can add comments to the text of the SMS message , which are intended for the sender to view the message history in the personal account.
The SUBMIT_MULTI command for multiple mailing is not yet implemented.
The server does not accept more than one identical request for sending SMS messages within a minute
to protect against errors and loops in the Client-side program in order to reduce the load and not
spend the Client's funds, as well as to prevent multiple messages from being sent to the same subscriber.
Comments in SMS messagesWhen sending SMS messages, you can add any comment to the end of the text that clarifies or supplements the SMS message for the sender. This text will not be sent to subscribers and will not affect the cost of SMS and is available for viewing and filtering in the list of sent messages in your personal account.
To add a comment, you must specify a special combination "\n~~~\n " at the end of the text of the SMS message intended for sending (line feed, 3 of the tilde character, and again line feed), and after that, any text that will be considered a comment will not be sent to the subscriber, but will be displayed in the history.
Sending an MMS messageTo send an MMS message, use the SUBMIT_SM command with the text " __MMS__: <message><message>\nsubj:<subject>" (text "__MMS__", colon, space, message text, line feed, text "subj", colon, subject of the MMS message).
Sending an e-mail messageTo send an e-mail message, use the SUBMIT_SM command with the text " _ _ MAIL__: <message><message>\nsubj:<subject>" (text "_ _ MAIL__", colon, space, message text, line feed, word "subj", colon, subject of the e-mail message).
Sending a voice message (call)To send a voice message, use the SUBMIT_SM command with the text " __CALL__: <message><message>\nvoice:<voice><voice>" (text "__CALL__", colon, space, message text, line feed, word "voice", colon, voice used to voice the text).
Possible values for the voice used:
Sending a viber messageTo send a viber message, use the SUBMIT_SM command with the text " __VIBER__: <message><message>" (text "__VIBER__", colon, space, message text).
When forming the message text, you can use special macros to create a button that will open the browser and click on the link specified in the macro, as well as attach files. More details additional features for sending viber messages are described in the documentation for the http protocol.
Sending a soc messageTo send a soc message sent to users of the Odnoklassniki, VKontakte, or Mail.Ru Agent social networks, use the SUBMIT_SM command with the text " _ _ SOC__: <message><message>" (text " _ _ SOC__", colon, space, message text).
Sending HLR-queryTo send an HLR request, use the SUBMIT_SM command with the text __HLR__. The result of the request comes in the usual status (Delivery Report), which can be received both via the SMPP connection and via HTTP to your handler.
Status format with the result of an HLR request returned by SMPP:
Description of parameters:
String data, such as country and operator, is encoded via the urlencode function.
Example of the result of an HLR request:
Sample PHP code for parsing a string with the result of an HLR request:
Example of parsing through regular expressions:
To send a Ping-SMS, use the SUBMIT_SM command with the text _ _ PING__.
|© 2003Ц2023 SMS Center LLC|
License no. 166255
|Design Ч Artemy Lebedev Studio|