How to send SMS using Twilio API in Java?

I came across a question on StackOverflow.com yesterday. As, I have used Twilio API to send SMS and do Phone Call many times. I signed up to help the OP.

If you wanna compile following code in your local box, then you need to have JSON.jar and commons-codec-1.8.jar JAR files. Download File Archive

I wrote this class to generalize any Web Related Helper Methods.

To output property, I used Bootstrap 2.3.2 in following JSP.

If you get all things working, the output would look like this.

TwilioMessageExample

Yin Yang Java Swing Program

I wrote this simple YinYang Java Swing Program in my CS202 class back in Spring 2008 at CalStateLA. I thought to share with all.

Code

Output

Here is the screenshot of output window.

YigYang

Email Controller – Send Email via JavaMail SMTP – JavaEE Servlet

Email.java

SMTPAuthenticator.java