Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Get the number of credits currently available on your account.

Example successful response body XML:

Code Block
themeRDark
languagexml
linenumberstrue
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE response PUBLIC
"-//textmarketer.co.uk//DTD Web Services REST 1.6//EN"
"http://api.textmarketer.co.uk/services/rest/DTD/credits_get.dtd">
<response processed_date="2011-04-12T14:00:09+01:00">
<credits>450</credits>
</response>

Response meanings:

XML tag/attributeMeaning
credits

The number of credits on the account specifed specified by the username/password.

specific errors:

None.

DTD for credits GET:

Code Block
themeRDark
languagexml
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<!--
 	PUBLIC ID : -//textmarketer.co.uk//DTD Web Services REST 1.6//EN
 	SYSTEM ID : http://api.textmarketer.co.uk/services/rest/DTD/credits_get.dtd
-->
<!ELEMENT response (credits)>
<!ATTLIST response
	 processed_date CDATA #REQUIRED
>
<!ELEMENT credits (#PCDATA)>