Login to your account: Login 

Posted on June 26th, 2009 by Nick.
Categories: All SMS Gateway Documentation, Documentation

Bulk SMS API ASP Help

Using standard ASP libraries

<%
url=”http://www.textmarketer.biz/gateway/?username=#&password=#&number=#&message=msg&orig=nameORnumber&option=xml”

Set objXMLDoc = CreateObject(“Microsoft.XMLDOM”)

objXMLDoc.async = False
objXMLDoc.load(url)

status = objXMLDoc.documentElement.selectSingleNode(“//response”).getAttribute(“status”)

if status = “success”  then
response.write “Status ” & status & ” Credits ” & objXMLDoc.documentElement.selectSingleNode(“//response/credits”).Text
else
response.write “Status ” & status & ” Reason ” & objXMLDoc.documentElement.selectSingleNode(“//response/reason”).Text
end if
%>

Put that into an ASP page and change the username, password, message and orig in the url string and it will work.  In terms of parsing the XML, this is a useful reference: http://devguru.com/technologies/xmldom/quickref/xmldom_methods.html.  This code does not use the .net framework so it will work in both ASP and ASP.NET pages.  The only weakness in the solution above is the fact that there can be multiple reasons for failure, this solution will only take the first reason, but for some, this will be good enough.  To make the code handle this case, the else block would need a loop and you would use objXMLDoc.documentElement.selectNodes instead of objXMLDoc.documentElement.selectSingleNode.

Popularity: 4%






Related posts:

  1. SMS Gateway API – Specification
    This blog post has been superseded with our website documentation It is recommended that you use the  RESTful version of the API which has largely superseded this document...
  2. KPMG Chooses Text Marketer For Bulk SMS Alerts
    The Uk’s leading accountancy firm, KPMG has selected Text Marketer to provide them with a bulk sms solution for internal...
  3. PHP 5 Simple SMS send Class
    This blog post has been superseded with our website documentation 2 classes available in php 5, SendSMS and SendSMSXML (recommended) Class Name: SendSMS...
  4. How to integrate our SMS Gateway API into your systems
    Introduction Adding SMS as a communication method to a system is often very useful, for instance you don’t have issues...
  5. How to use an SMS Gateway
    Our SMS Gateway is extremely powerful indeed. It allows companies to connect to our systems and send out messages 1...
  6. Is there such a thing as ‘quality’ in Bulk SMS?
    There are a vast number of different ‘gateways’ that bulk sms service providers can use to connect to the UK...
  7. Text Marketer short code / txtUs API options
    Introduction The keyword on your system (on short code 88802) or your txtUs number can be used to “route” incoming...
  8. Using the SMS Gateway API, Automating Delivery Report Collection
    This blog post has been superseded with our website documentation Introduction If you are using the API / Gateway to send bulk SMS...

The service provided by Text Marketer Ltd must be used for solicited marketing only. All marketing messages sent must be delivered to devices/numbers that have positively opted into receiving SMS messages. To protect the privacy of recipients there is also an opt-out option included on every account, i.e “STOP”. We adhere fully to all best practices as set out by the Government’s Information Commissioner’s Office. For further information please follow this link. www.ico.org.uk/for_the_public/topic_specific_guides/marketing/texts

Copyright © 2012 Text Marketer Ltd | All Rights Reserved

Specialists in Mobile Marketing, Bulk SMS, SMS Marketing, SMS Gateway & Shortcode SMS