Group SendingIntroductionSMSLib allows you to define groups of recipients, all grouped under a common name and use that name as the recipient of a message. SMSLib will expand the message and will send it to all recipients of the group. How to use groupsIn order to use groups, you have to: - Define one or more groups and,
- Fill the groups with the respective destinations
In order to define a group, you use the Service.createGroup() method, i.e. Service.createGroup("MyParents");This command will create and register the group "MyParents". However, this is an empty group and you must assign destinations. You will use the Service.addToGroup() method: Service.addToGroup("MyParents", "+301122334455")
Service.addToGroup("MyParents", "+301223344556")Now you have a group with contains two numbers. If you try to send a message via SMSLib with a recipient of "MyParents", SMSLib will actually send two messages to both of the above mentioned group numbers. Note that: - You can define unlimited groups.
- Each group may hold an unlimited number of recipients.
Group managementSMSLib currently provides a couple of basic group management methods, all located under the main Service class. Have a look at the createGroup(), removeGroup(), addToGroup() and removeFromGroup() methods for further information.
|
In which version the above method supports?
Head repo revision.
is it already available at the 3.4.1 release?? tnx in advance
Yes.
Can we get the status of messages when we send using groups?