Interface GroupsService
A group is a set of phone numbers (or MSISDNs) that can be used as a target when sending an SMS. An phone number (MSISDN) can only occur once in a group and any attempts to add a duplicate are ignored but not rejected.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create an unnamed and empty groupcreate
(GroupCreateRequestParameters parameters) Create a group.void
Delete a groupRetrieve a group.list()
List groups with default parameterslist
(GroupsListRequestParameters parameters) List GroupslistMembers
(String groupId) Get phone numbers for a groupreplace
(String groupId, GroupReplaceRequestParameters parameters) Replace a groupupdate
(String groupId, GroupUpdateRequestParameters parameters) Update a group
-
Method Details
-
get
Retrieve a group.This operation retrieves a specific group with the provided group ID.
- Parameters:
groupId
- The inbound ID found when listing inbound messages- Returns:
- Group associated to groupId
- Throws:
ApiException
- Since:
- 1.0
- See Also:
-
create
Create a group.A group is a set of phone numbers (MSISDNs) that can be used as a target in the
send_batch_msg
operation. An MSISDN can only occur once in a group and any attempts to add a duplicate would be ignored but not rejected.- Parameters:
parameters
- Parameters to be used to define group onto creation- Returns:
- Created group
- Throws:
ApiException
- Since:
- 1.0
- See Also:
-
create
Create an unnamed and empty group- Returns:
- See
create(GroupCreateRequestParameters)
- Throws:
ApiException
- Since:
- 1.0
-
list
List GroupsWith the list operation you can list all groups that you have created. This operation supports pagination.
Groups are returned in reverse chronological order.
- Parameters:
parameters
- Filtering parameters- Returns:
- group list
- Throws:
ApiException
- Since:
- 1.0
- See Also:
-
list
List groups with default parameters- Returns:
- See
list(GroupsListRequestParameters)
- Throws:
ApiException
- Since:
- 1.0
-
replace
Replace a groupThe replace operation will replace all parameters, including members, of an existing group with new values.
Replacing a group targeted by a batch message scheduled in the future is allowed and changes will be reflected when the batch is sent.
- Parameters:
groupId
- ID of a group that you are interested in getting.parameters
- Parameters to be replaced for group- Returns:
- Group associated to groupId
- Throws:
ApiException
- Since:
- 1.0
- See Also:
-
update
Update a group- Parameters:
groupId
- ID of a group that you are interested in getting.parameters
- Parameters to be used to update group- Returns:
- Modified group associated to groupId
- Throws:
ApiException
- Since:
- 1.0
- See Also:
-
delete
Delete a group- Parameters:
groupId
- ID of a group that you are interested in getting.- Throws:
ApiException
- Since:
- 1.0
- See Also:
-
listMembers
Get phone numbers for a group- Parameters:
groupId
- ID of a group that you are interested in getting.- Returns:
- A list of phone numbers in E.164 format.
- Throws:
ApiException
- Since:
- 1.0
- See Also:
-