|
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.
MESSAGES SENDING Sending an SMS message MANAGING MAILING LISTSComments in SMS messages Sending to a group of numbers Sending an HLR request Sending an e-mail message Sending a voice message (call) Sending a viber message Sending a message to Telegram Sending a message to the Telegram chatbot 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 STATUSMessage statuses. Server response and error codes Status codes Error codes in the status Deleting a message MANAGING CONTACTS Actions with contacts and groups CLIENT MANAGEMENTContacts and groups. Server response and error codes Examples of operations with contacts 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 | Managing contactsActions 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..To create a contact:
https://smscentre.com/sys/phones.php?add=1&login=<login>&psw=<password>&phone=<phone>&name=<name>
To create a new group:
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 To delete a contact: 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> To display a list of groups: 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 Contacts and groups. Description of the parametersDescription of the parameters passed to the Server:
Contacts and groups. 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> date of birth in the format dd.mm.yyyy. <id> contact Id assigned by the Client. <comments> commentary. <tags> tags (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>. When requesting a list of groups:
<id> group ID assigned by the Server when creating the group. <name> the name of the group. <number> the number of the mailing group. <cnt> the 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. |
© 20032024 SMS Center LLC | support@smscentre.com Contacts | Design Artemy Lebedev Studio Site Information |