<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Text Message - send SMS &#187; credit request</title>
	<atom:link href="http://textmessage.ie/blog/tag/credit-request/feed" rel="self" type="application/rss+xml" />
	<link>http://textmessage.ie/blog</link>
	<description>blog regarding development of SMS gateway service from Hostingireland.ie</description>
	<lastBuildDate>Thu, 08 Oct 2009 11:48:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Credit Balance Request Command</title>
		<link>http://textmessage.ie/blog/credit-balance-request-command/65</link>
		<comments>http://textmessage.ie/blog/credit-balance-request-command/65#comments</comments>
		<pubDate>Tue, 19 May 2009 11:44:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SMS gateway API developement]]></category>
		<category><![CDATA[text messages development]]></category>
		<category><![CDATA[credit request]]></category>
		<category><![CDATA[SMS API]]></category>

		<guid isPermaLink="false">http://textmessage.ie/blog/?p=65</guid>
		<description><![CDATA[A request sent to the SMS API with correct Authentication details can now request its current balance, using the new Action property.
A sample request is displayed below:
http://sms.hostingireland.ie/?username=USERNAME&#38;password=PASSWORD&#38;action=creditrequest
The usual error messages, documented here apply, as well as a new XML response code, the response code is 101, which implies a succesful credit query, and will also [...]]]></description>
			<content:encoded><![CDATA[<p>A request sent to the SMS API with correct Authentication details can now request its current balance, using the new Action property.</p>
<p>A sample request is displayed below:</p>
<pre>http://sms.hostingireland.ie/?username=USERNAME&amp;password=PASSWORD&amp;action=creditrequest</pre>
<p>The usual error messages, documented <a title="Common API responsed" href="http://textmessage.ie/blog/common-api-responses/54" target="_blank">here</a> apply, as well as a new XML response code, the response code is 101, which implies a succesful credit query, and will also have a log entry ID. an example reply is found below:</p>
<pre id="line1">&lt;<span class="start-tag">smsapi</span>&gt;
	&lt;<span class="start-tag">result</span><span class="attribute-name"> code</span>=<span class="attribute-value">"101" </span><span class="attribute-name">id</span>=<span class="attribute-value">"cdaef13616e100fcd9fb80ef15a886ff"</span>&gt;561&lt;/<span class="end-tag">result</span>&gt;
&lt;/<span class="end-tag">smsapi</span>&gt;</pre>
<p>This response code can now be used to check for sufficient credits before attempting to send a bulk of SMS messages, this will help prevent issues with your local sending code, and also reduce the load on the SMS API server.</p>
<p>As usual, you can send any feedback on this to smsapi@hostingireland.ie or send a post in our <a href="http://www.textmessage.ie/forum">forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://textmessage.ie/blog/credit-balance-request-command/65/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
