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

account GET method

=20
=20
=20
=20

 

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

Retrieves details for an account.

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

Resource URL:

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

http://api.textm= arketer.co.uk/services/rest/account

=20
=20
=20
=20
=20

 

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

or:

=20
=20
=20
=20

 

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

http://api.textmarketer.co.uk/ser= vices/rest/account/<account ID>

=20
=20
=20
=20
=20

 

=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/groups_get.dtd"&=
gt;
<response processed_date=3D"2012-04-11T11:23:14+02:00">
=09<account>
=09=09<account_id>abcdefghijklmnopqrstuvwx</account_id>
=09=09<api_password>my_api_password</api_password>
=09=09<api_username>my_api_username</api_username>
=09=09<company_name>Bill's Bakery</company_name>
=09=09<create_date>20012-02-12T01:00:00+02:00</create_date>
=09=09<credits>833</credits>
=09=09<notification_email>bill@billsbakery.com</notification_email=
>
=09=09<notification_mobile>447777777777</notification_mobile>
=09=09<password>my_UI_password</password>
=09=09<username>my_UI_username</username>
=09</account>
</response>
=20
=20
=20
=20
=20
=20
=20

Response meanings:

=20
=20
=20
=20
XML tag/attribute Meaning
account_id

Up to 24 alpha-numeric characters. Your refer= ence for the account, to be used when specifying an account for retrieval t= hat is not the account identifed by the API username/password you are using= to access the API, i.e. you can use this to specify other accounts that yo= u have created. You may access any account that was created using the accou= nt you are using to access the API.

api_password 

The API password of the account retrieved

=
api_username

The API username of the account retrieved

=
company_name

The company name of the account retrieved

=
create_date 

The exact time/date the account was created (= in ISO 8601 format)

credits 

The number of credits available on the accoun= t. If you only wish to retrieve the number of credits, you should use the credits resource.

notifcation_email

The main email address of the account, used t= o receive notifcations and alerts.

notifcation_mobile 

The main mobile number of the account, used t= o receive notifcations and alerts.

password

The account password, used to access the acco= unt UI at https://messagebox.textmarketer.co.uk= .

username 

The account username, used to access the acco= unt UI at https://messagebox.textmarketer.co.uk= .

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

Specific errors:

=20
=20
=20
=20

No specific errors.

=20 =20

that a 404 status code is returned if the account ID specified does not = exist, and 403 if you do not have permission to access the account you spec= ified.

=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/groups_get.=
dtd
-->
<!ELEMENT response (account)>
<!ATTLIST response
 =09processed_date CDATA #REQUIRED
>
<!ELEMENT account (account_id, api_password, api_username, company_name?=
,=20
create_date, credits, notification_email?, notification_mobile?, password,=
=20
username)>
<!ELEMENT account_id (#PCDATA)>
<!ELEMENT api_password (#PCDATA)>
<!ELEMENT api_username (#PCDATA)>
<!ELEMENT company_name (#PCDATA)>
<!ELEMENT create_date (#PCDATA)>
<!ELEMENT credits (#PCDATA)>
<!ELEMENT notification_email (#PCDATA)>
<!ELEMENT notification_mobile (#PCDATA)>
<!ELEMENT password (#PCDATA)>
<!ELEMENT username (#PCDATA)>
=20
=20
=20
=20 =20
------=_Part_15784_67711292.1614958141129--