|
8 (800) 700 7672 Free in Russia |
The API allows you to send messages through your projects and services over 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. For simplified authorization, instead of a login and password pair, you can use a special API key.
CONNECTION THE SPEED OF MAILING LISTS MULTIPLE CONNECTIONS SENDING A MESSAGE Sending an SMS message CHECKING THE STATUSComments in SMS messages Sending an e-mail message Sending a voice message (call) Sending a viber message Sending a soc message Sending a message to Telegram Sending a message to the Telegram chatbot Sending an HLR request RECEIVING INCOMING MESSAGES ERROR CODES IN THE STATUS | Sending an HLR requestTo 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. Example of the result of an HLR request:
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–2024 SMS Center LLC | support@smscentre.com Contacts | Design — Artemy Lebedev Studio Site Information |