![]() |
|
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 MULTIPLE CONNECTIONS SENDING A MESSAGE Sending an SMS message CHECKING THE STATUSComments 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 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:
id:<id> stat:<status> err:<err> imsi:<imsi> msc:<msc> mcc:<mcc> mnc:<mnc> cn:<cn> net:<net> rcn:<rcn> rnet:<rnet>
Description of parameters:
String data, such as country and operator, is encoded via the urlencode function. Пример результата HLR-запроса:
id:855469 stat:DELIVRD err:000 imsi:250023012345678
Sample PHP code for parsing a string with the result of an HLR request: $dlr = strtr($dlr, ": ", "=&"); // $dlr - строка статуса
Example of parsing through regular expressions: preg_match("/^id:(\d+) stat:(\w+) err:(\d+) imsi:(\d*) msc:(\d*) mcc:(\d*) mnc:(\d*) cn:([^ ]*) net:([^ ]*) rcn:([^ ]*) rnet:([^ ]*)/", $dlr, $m); // $dlr - строка статуса
To send a Ping-SMS, use the SUBMIT_SM command with the text _ _ PING__. |
© 2003–2023 SMS Center LLC License no. 166255 | support@smscentre.com Contacts | Design — Artemy Lebedev Studio Site Information |
![]() |