is it possible to make a system SMS Based Query in Java -
is possible make system sms based query in java?because im planning try , make system based on java has sms based query when send sort of code system replies sms
yes, check out twilio. pretty great , can set cool chat bot type of thing either using web server or amazon lambda. can set script take inputs, whatever code want , send output.
// install java helper library twilio.com/docs/java/install import com.twilio.twilio; import com.twilio.rest.api.v2010.account.message; import com.twilio.type.phonenumber; import java.net.urisyntaxexception; public class smssender { // find account sid , auth token @ twilio.com/console public static final string account_sid = "acxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; public static final string auth_token = "your_auth_token"; public static void main(string[] args) throws urisyntaxexception { twilio.init(account_sid, auth_token); message message = message .creator(new phonenumber("+14159352345"), // new phonenumber("+14158141829"), // "where's wallace?") .create(); }
}
Comments
Post a Comment