Docy

Did You Know?

ASP Sample Code (GET)

                                        
                                <%
                                                                           
                                    apikey = "yourapikey"
                                    address = "https://www.echosofts.com/api/sendsms.php?"
                                    message = "This is your message"
                                    message = Server.urlencode(message)
                                    phone   = "923186373741,923186373741,923186373741"
                                    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.echosofts.com/api/sendsms.php?"
                                    message = "This is your message"
                                    message = Server.urlencode(message)
                                    phone   = "923186373741,923186373741,923186373741"
                                    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
                                                                                	
                                %>
                                        
                                         
                                    
CONTENTS