Click here to Skip to main content
15,936,887 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir

I have an API of sending SMS like
http://smsdynamic.co.in/sendsms?uname=yourUsername&pwd=yourPassword&senderid=yourSenderid&to=9444xxxxxx&msg=yourMessage&route=yourRoute

So I am passing parameter and sending SMS.

But Now How I wll use it by click on a button, The above URL will fire and it will not open a new browser.It will send internally.


thanks.
Posted

http://smsdynamic.co.in/sendsms?uname=yourUsername&pwd=yourPassword&senderid=yourSenderid&to=9444xxxxxx&msg=yourMessage&route=yourRoute
Based on the query strings shown here, I will never use this API, but that's me!

How I wll use it by click on a button, The above URL will fire and it will not open a new browser.It will send internally
You cannot avoid opening of new window - basically it opens the URL to send the sms. So, in order to send sms, url has to be executed. If the above website really wants other to use it as an API to send sms internally, they would expose a service to do so where you can post your requests.
 
Share this answer
 
There are various ways we can send SMS. It depends on the interface the provider gives.

1. SMPP ( Fastest way of sending messages using simple message peer to peer protocal)
2. HTTP interface (XML or direct http request get/post)
3. FTP: we need to write the text file the provider will read and process line by line
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900