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

getGroups - C#

=20
=20
=20
=20

 

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

Get a list of available 'send' groups, including 'merge' groups - pre-de= fined groups containing a list of mobile numbers to send a message to.
Also lists 'stop' groups - numbers in these groups will never be sent mess= ages. Every account has at least one stop group, so that your recipients ca= n always opt out of receiving messages from you. This is a legal requiremen= t.

=20
=20
=20
=20
=20
=20
Example
=20
Hashtable[] result =3D tmClient.getGroups();
foreach (Hashtable group in result) {
=09Console.WriteLine("Group ID: {0}", group["id"]);
=09Console.WriteLine("Group numbers: {0}", group[""]);
=09Console.WriteLine("Group name: {0}", group["name"]);
=09Console.WriteLine("Group IS STOP: {0}", group["is_stop&qu=
ot;]);
}
=20
=20
=20
=20
=20
=20
=20

Arguments:

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

String name: 

=20
=20
=20
=20

Name of the delivery report to retrieve or 'all' to retrieve all campaig= n/API report data.

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

Returns:

=20
=20
=20
=20

An array of Hashtable, each group represented by a Hashtable. Each Hasht= able has 4 keys: 'is_stop', 'id', 'numbers' and 'name' e.g. name of th= e first returned group is group["name"]

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

Each Hashtable has 4 keys:

=20
=20
=20
=20
Hashtable key  Value
name 

String. The name of the group.

quantity  Integer. The quantity of numbers in the group.
id 

Integer. The unique ID of the group, unique f= or this account.

is_stop Boolean. Whether the group is a stop group, norm= ally false.
=20
=20
=20
=20
=20
=20

Specific error codes:

=20
=20
=20
=20

None. 

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

 

=20
=20
=20
=20

 

=20
=20
=20
------=_Part_15888_1482583486.1614958614946--