Java Script

Use the JAVA codings below to send SMS. You can modify this basic code to your requirements.
change values of id, pw, to and text with your user id, password, senders telephone number(to) and the message(text)


import java.net.*;
import java.io.*;

public class URLReader {
public static void main(String[] args) throws Exception {

URL textit = new URL("http://textit.biz/sendmsg/index.php?id=94000000000&pw=0000&to=0000000000&text=Test+SMS");
BufferedReader in = new BufferedReader(
new InputStreamReader(textit.openStream()));

String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}

more details can be found at the oracle java documentation at https://docs.oracle.com/javase/tutorial/networking/urls/index.html

Leave a Reply

Your email address will not be published. Required fields are marked *