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

group POST method

=20
=20
=20
=20

 

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

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

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

POST arguments

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

The following parameters should be used in a POST request:

=20
=20
=20
=20
Parameter  Value
numbers

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

username

The username of the source/master account, fo= r authentication. Not required if you use HTTP Basic Authentication instead= .

password

The password of the source/master account, fo= r authentication. Not required if you use HTTP Basic Authentication instead= .

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

The following parameters are DEPRECATED in favour of specifying the grou= p ID/name in the URL. You should NOT use them in any new code, and should r= emove them from any existing code:

=20
=20
=20
=20
Parameter

Value

id= (DEPRECATED) The unique ID of the group to add to.

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

OR you could previously use (now DEPRECATED):

=20
=20
=20
=20
Parameter

Value

name (DEPRECATED)

The name of the group to add to.

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

Example successful response body XML:

=20
=20
=20
=20
=20
<?xml version=3D"1.0" encoding=3D"ISO-8859-1"?&=
gt;
<!DOCTYPE response PUBLIC
"-//textmarketer.co.uk//DTD Web Services REST 1.6//EN"
"http://api.textmarketer.co.uk/services/rest/DTD/group_post.dtd"&=
gt;
<response processed_date=3D"2011-04-15T09:27:42+01:00">
<added quantity=3D"1">
=09<number>447777000001</number>
</added>
<stopped quantity=3D"1">
=09<number>447777000002</number>
</stopped>
<duplicates quantity=3D"1">
=09<number>447777000003</number>
</duplicates>
</response>
=20
=20
=20
=20
=20
=20
=20

Response meanings:

=20
=20
=20
=20
XML tag/attribute Meaning
added

A list of numbers that were successfully adde= d to the group.

stopped 

A list of numbers that were not added to the = group because they were already present in a 'stop group'. A 'stop group' c= ontains numbers that should not receive messages.

duplicates

A list of numbers that were not added to the = group because they were already present in the group.

quantity

The count of numbers in the added, <= em>stopped or duplicates list.

number 

A mobile number that was added, stopped, or a= duplicate. Note that this will always be in international format.

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

Specific errors:

=20
=20
=20
=20
Code Meaning
0

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

1 DEPRECATED. A 404 status code is returned instea= d.
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 resource.
=20 =20

A 404 status code is returned if the group specified does not exist.

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

DTD:

=20
=20
=20
=20
=20
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!--
 =09PUBLIC ID : -//textmarketer.co.uk//DTD Web Services REST 1.6//EN
 =09SYSTEM ID : http://api.textmarketer.co.uk/services/rest/DTD/group_post.=
dtd
-->
<!ELEMENT response (added, stopped, duplicates)>
<!ATTLIST response
=09processed_date CDATA #REQUIRED
>
<!ELEMENT added (number*)>
<!ATTLIST added
 =09quantity CDATA #REQUIRED
>
<!ELEMENT stopped (number*)>
<!ATTLIST stopped
 =09quantity CDATA #REQUIRED
>
<!ELEMENT duplicates (number*)>
<!ATTLIST duplicates
 =09quantity CDATA #REQUIRED
>
<!ELEMENT number (#PCDATA) >
=20
=20
=20
=20 =20
------=_Part_15770_178669217.1614958074849--