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
Add a number/numbers to a 'send' group (excluding 'merge' groups).
$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
Arguments:
array $numbersArray:
An array of the MSISDNs (mobile number(s)) you wish to add.
string/int $groupName:
Name (or integer ID) of the group to add the numbers to.
Returns:
an array with 3 keys: 'added', 'stopped', 'duplicates', each correspondi= ng value being an array of numbers
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. |
Specific error codes:
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. |
error code 404 is reported if the group does not exist. See General error codes
You must know!
=20 =20Our 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.