![]() |
|
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.
ОТПРАВКА СООБЩЕНИЙ Sending an SMS message MANAGING MAILING LISTSComments in SMS messages Sending to a group of numbers Sending HLR-query Sending an MMS message Sending an e-mail message Sending a voice message (call) Sending a viber message Отправка telegram-сообщения Using prefixes when sending messages Managing message templates Managing operator templates Virtual sending (test mode) Event Notifications MESSAGE STATUSES Checking the status CHECKING THE BALANCE STATUSServer response and error codes Status codes Error codes in the status Deleting a message ![]() CLIENT MANAGEMENT Work with the subclient MANAGING SENDER NAMES (SENDER ID)Creating and uploading invoices and reports List of available operations with sender names GETTING DATAServer response and error codes Examples of actions with sender names Getting the history of sent messages VARIOUSReceiving incoming messages Getting statistics Request for rates Getting information about the operator Getting data about a short link | Управление контактамиActions with contacts and groupsTo manage contacts or groups, use the GET or POST method to call the appropriate address with the required command and parameters..Для создания контакта:
https://smscentre.com/sys/phones.php?add=1&login=<login>&psw=<password>&phone=<phone>&name=<name>
Для создания новой группы:
https://smscentre.com/sys/phones.php?add_group To change the phone number in a contact:
https://smscentre.com/sys/phones.php?chg=1&login=<login>&psw=<password>&phone=<phone>&new_phone=<new_phone>
To change the group name:
https://smscentre.com/sys/phones.php?chg_group To transfer a contact to a new group:
https://smscentre.com/sys/phones.php?move_grou To add a new group to a contact:
https://smscentre.com/sys/phones.php?move_grou To remove a contact from a group:
https://smscentre.com/sys/phones.php?move_grou Для удаления контакта: https://smscentre.com/sys/phones.php?del=1&login=<login>&psw=<password>&phone=<phone> To delete a group: https://smscentre.com/sys/phones.php?del_group To display a list of contacts: https://smscentre.com/sys/phones.php?get=1&login=<login>&psw=<password> Для вывода списка групп: https://smscentre.com/sys/phones.php?get_group To add an entry to the blacklist:
https://smscentre.com/sys/phones.php?add_black To remove an entry from the blacklist:
https://smscentre.com/sys/phones.php?del_black To get the elements of the "black" list:
https://smscentre.com/sys/phones.php?get_black Description of parametersDescription of the parameters passed to the Server:
Server response and error codesIf an error occurs, the Server returns the following string:
If the request is successful, the Server returns a response in the form of a string. When creating a contact, contact group, or blacklist entry:
When changing or deleting a contact (group), deleting a black list entry:
<phone> – a list of phone numbers separated by any separator. For e-mail addresses, it is replaced with <mail>. <name> – contact name. <group> – iD of the group that the contact belongs to. <first_name> – ID. <last_name> – surname. <middle_name> – middle name. <birthday> – дата рождения в формате дд.мм.гггг. <id> – contact Id assigned by the Client. <comments> – commentary. <tags> – теги (метки). <phone_other><phone_other> – other phone numbers. According to these numbers, messages are not sent out. For e-mail addresses are replaced with <mail_other>. При запросе списка групп:
<id> – group ID assigned by the Server when creating the group. <name> – group name. <number> – номер группы для рассылок. <cnt> – number of contacts in the group. When requesting elements of the "black" list:
<id> – iD of the element assigned by the Server when creating. <phone> – phone number (or <email><email> when requesting an e-mail blacklist). <type> – blocking type: 0 – all messages, 1 - mass mailings, 2 - single messages. <comment> – commentary. Examples of operations with contactsExamples:Creating a contact named "Contact" that belongs to a group with ID = 321: https://smscentre.com/sys/phones.php?add=1&login=alex&psw=123&phone=79999999999&name=Contact&grp=321 Creating a group named " Group": https://smscentre.com/sys/phones.php?add_group Changing the name of the contact with the phone number "79999999999" to the new name " Contact1": https://smscentre.com/sys/phones.php?chg=1&login=alex&psw=123&phone=79999999999&name=Contact1 Changing the group name from ID = 321 to the new name " Group1": https://smscentre.com/sys/phones.php?chg_group Deleting a contact with the phone number " 79999999999": https://smscentre.com/sys/phones.php?del=1&login=alex&psw=123&phone=79999999999 Deleting a group with ID = 321: https://smscentre.com/sys/phones.php?del_group Getting a list of contacts belonging to a group with ID = 321: https://smscentre.com/sys/phones.php?get=1&login=alex&psw=123&grp=321 Getting contact data with the phone number " 79999999999": https://smscentre.com/sys/phones.php?get=1&login=alex&psw=123&phone=79999999999 Getting a list of all groups: https://smscentre.com/sys/phones.php?get_group Adding the phone "79999999999" to the "black" list with blocking only mass mailings: https://smscentre.com/sys/phones.php?add_black Removing the phone "79999999999" from the "black" list: https://smscentre.com/sys/phones.php?del_black
The server does not accept more than three identical requests per minute for operations with groups, contacts, or blacklisted entries to reduce the load and protect against errors and loops in the Client-side program. |
© 2003–2023 SMS Center LLC License no. 166255 | support@smscentre.com Contacts | Design — Artemy Lebedev Studio Site Information |
![]() |