ASP Sample Code (GET)
<%
apikey = "yourapikey"
address = "https://www.hajanaone.com/api/sendsms.php?"
message = "This is your message"
message = Server.urlencode(message)
phone = "923332345678,923331234567,923001234567"
sender = "SmartSMS"
url = address & "apikey=" & apikey & "&phone=" & phone & "&message=" & message & "&sender=" & sender
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
msg = xmlhttp.responseText
response.write(msg)
set xmlhttp = nothing
%>
ASP Sample Code (POST)
<%
apikey = "yourapikey"
address = "https://www.hajanaone.com/api/sendsms.php?"
message = "This is your message"
message = Server.urlencode(message)
phone = "923332345678,923331234567,923001234567"
sender = "SmartSMS"
url = address & "apikey=" & apikey & "&phone=" & phone & "&message=" & message & "&sender=" & sender
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", url, false
xmlhttp.send ""
msg = xmlhttp.responseText
response.write(msg)
set xmlhttp = nothing
%>