Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Add a number/numbers to a 'send' group (excluding 'merge' groups).

Code Block
themeRDark
languagejava
titleExample
linenumberstrue
int numAdded = tmClient.addNumbersToGroup("My Group", "447777000001,447777000002");
System.out.println("Added " + numAdded + " to My Group");

Arguments:

 

String groupName:

Name ID of the group to add the numbers to.

String numbersArray: 

numbers The MSISDN (mobile number) you wish to add, if you want to add more then one use a comma delimited list.

Returns:

an integer with the total of added numbers to the selected group.

Specific error codes:

CodeMeaning
0The group ID or name was not specified or was invalid.
1DEPRECATED
2No numbers were supplied for adding to the group.
3

A number was not of a valid format.

4This service will not add to a merge group. Merge groups are not handled by this function.
Note

error code 404 is reported if the group does not exist. See General error codes.

Panel
title
  • Next
Panel
titleAll Functions
Panel
titleDownload