My favorites | Sign in
Logo
                
Search
for
Updated Aug 30, 2009 by T.Delenikas
SMSLib_Groups  
SMSLib Group Management

Group Sending

Introduction

SMSLib 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 groups

In 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 management

SMSLib 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.


Comment by karthi.charles, Mar 10, 2009

In which version the above method supports?

Comment by T.Delenikas, Mar 10, 2009

Head repo revision.

Comment by iEGUPMCAS, May 06, 2009

is it already available at the 3.4.1 release?? tnx in advance

Comment by T.Delenikas, May 06, 2009

Yes.

Comment by tasneemdhuliawala, Jun 04, 2009

Can we get the status of messages when we send using groups?


Sign in to add a comment
Hosted by Google Code