Message-ID: <12538418.15799.1614958208814.JavaMail.confluence@wiki> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_15798_1490911487.1614958208814" ------=_Part_15798_1490911487.1614958208814 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html addNumbersToGroupWithName

addNumbersToGroupWithName

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

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

=20
=20
=20
=20
=20
=20
Example
=20
$add=3D$tmClient->addNumbersToGroupWithName(array('447000000001','4=
47000000002'), 'My Group');
if (!empty($add['added']))
{
=09echo count($add['added'])." numbers were successfully added:<br/=
>\n";
=09foreach ($add['added'] as $number)
=09echo "$number <br/>\n";
}
=20
=20
=20
=20
=20
=20
=20

Arguments:

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20

array $numbersArray:

=20
=20
=20
=20

 An array of the MSISDNs (mobile number(s)) you wish to add.

=20
=20
=20
=20
=20
=20

string/int $groupName:

=20
=20
=20
=20

 Name (or integer ID) of the group to add the numbers to.

=20
=20
=20
=20
=20
=20

Returns:

an array with 3 keys: 'added', 'stopped', 'duplicates', each correspondi= ng value being an array of numbers

=20
=20
=20
=20
Array key Value
added 

Array. An array of numbers in international f= ormat (e.g.447000000000 for a UK mobile). These numbers were successfully a= dded to the group.

stopped 

Array. An array of numbers in international f= ormat. These numbers were not added to the group because they are in a 'sto= p' group.

duplicates

Array. An array of numbers in international f= ormat. These numbers were not added to the group because they are already i= n the group.

=20
=20
=20
=20
=20
=20

Specific error codes:

=20
=20
=20
=20
Code Meaning
0

The group ID or name was not specified or was= invalid.

2 No numbers were supplied for adding to the group= .
3 A number was not of a valid format.
4 This service will not add to a merge group. Merg= e groups are not handled by this function.
=20 =20

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

=20
=20
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20
=20
=20
=20
=20

 

=20
=20
=20
=20

 

=20
=20
=20
=20
=20
=20
=20

You must know!

=20 =20

Our example code is an illustra= tion of how you might integrate with our systems and is not certified for p= roduction environments. You are responsible for testing and QA.

=20
=20
=20
=20
=20
------=_Part_15798_1490911487.1614958208814--