 
|   | 
 | 8 (800) 700 7672 Free in Russia | 
| 
MESSAGES SENDING Sending an SMS messageMANAGING MAILING LISTS Comments 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 Sending a message to Whatsapp Using prefixes when sending messages Managing message templates Managing operator templates Virtual sending (test mode) Event Notifications MESSAGE STATUSES Checking the statusCHECKING THE BALANCE STATUS Message statuses. Server response and error codes Status codes Error codes in the status Deleting a message  MANAGING CONTACTS Actions with contacts and groupsCLIENT MANAGEMENT Contacts and groups. Server response and error codes Examples of operations with contacts Work with the subclientMANAGING SENDER NAMES (SENDER ID) List of available operationsCreating and uploading invoices and reports Server response and error codes (sub-clients) Examples of actions with sub-clients List of available operations with sender namesGETTING DATA Server response and error codes (sender IDs) Examples of actions with sender names Getting the history of sent messagesVARIOUS Receiving 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_groupTo 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_groupTo transfer a contact to a new group: 
https://smscentre.com/sys/phones.php?move_grouTo add a new group to a contact: 
https://smscentre.com/sys/phones.php?move_grouTo remove a contact from a group: 
https://smscentre.com/sys/phones.php?move_grouTo 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_groupTo 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_groupTo add an entry to the blacklist: 
https://smscentre.com/sys/phones.php?add_blackTo remove an entry from the blacklist: 
https://smscentre.com/sys/phones.php?del_blackTo get the elements of the "black" list: 
https://smscentre.com/sys/phones.php?get_blackContacts 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=321Creating a group named " Group": https://smscentre.com/sys/phones.php?add_groupChanging 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=Contact1Changing the group name from ID = 321 to the new name " Group1": https://smscentre.com/sys/phones.php?chg_groupDeleting a contact with the phone number " 79999999999": https://smscentre.com/sys/phones.php?del=1&login=alex&psw=123&phone=79999999999Deleting a group with ID = 321: https://smscentre.com/sys/phones.php?del_groupGetting a list of contacts belonging to a group with ID = 321: https://smscentre.com/sys/phones.php?get=1&login=alex&psw=123&grp=321Getting contact data with the phone number " 79999999999": https://smscentre.com/sys/phones.php?get=1&login=alex&psw=123&phone=79999999999Getting a list of all groups: https://smscentre.com/sys/phones.php?get_groupAdding the phone "79999999999" to the "black" list with blocking only mass mailings: https://smscentre.com/sys/phones.php?add_blackRemoving the phone "79999999999" from the "black" list: https://smscentre.com/sys/phones.php?del_blackThe 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. |