Archive

Posts Tagged ‘logs’

SMS logs now available

April 21st, 2009

It has become neccessary to have logs available to users, so that messages sent through our SMS gateway can be investigated in the future.

With this in mind a new feature has been added to the the API, you can now request logs of your messages, using the URL:

http://sms.hostingireland.ie/logRequest/?username=accountName&password=accountPassword[&messageId=messageId]

If messageId is not presented, you will be given the logs for the last 100 (or all if the total is less than or equal to 100) connections from your account.

These logs are presented in XML 1.0 format, and you can see an example log below:

<?xml version="1.0"?>
<logList>
	<log messageId="b7c10d6cbfe5496ec16acda8d0a187d0">
		<entry date="2009-04-21 13:15:27">logged in.</entry>
		<entry date="2009-04-21 13:15:27">999 SMS credits Left.</entry>
		<entry date="2009-04-21 13:15:27">to: 08fgh1414</entry>
		<entry date="2009-04-21 13:15:27">message: test</entry>
		<entry date="2009-04-21 13:15:27">from: 1890987000</entry>
		<entry date="2009-04-21 13:15:27">send result:  Invalid Destination Address</entry>
	</log>
</logList>

If the requested logfile is not in your account, or your login details are incorrect you will receive an error notifying you of the failure to receive a logList, you will also receive an error if you do not yet have any logs for any actions for your account.

Any comments on the logging system or the format of the XML should be entered through our forum, or in reply to this post.

SMS gateway API developement, text messages development , , ,