import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.factory.MessageFactory;
import com.twilio.sdk.resource.instance.Message;

public class Demo {

	// Find your Account Sid and Token at twilio.com/user/account
	public static final String ACCOUNT_SID = "AC123";
	public static final String AUTH_TOKEN = "xxx";

	public static void main(String[] args) throws TwilioRestException {
		TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

		// Build a filter for the MessageList
		List<NameValuePair> params = new ArrayList<NameValuePair>();
		params.add(new BasicNameValuePair("Body",
				"Jenny please?! I love you <3"));
		params.add(new BasicNameValuePair("To", "+14159352345"));
		params.add(new BasicNameValuePair("From", "+14158141829"));

		MessageFactory messageFactory = client.getAccount().getMessageFactory();
		Message message = messageFactory.create(params);
		System.out.println(message.getSid());
	}
}
@@ -344,17 +344,20 @@
 Demo %7B%0A%0A
-%09
+    
 // Find 
@@ -410,17 +410,20 @@
 account%0A
-%09
+    
 public s
@@ -464,17 +464,20 @@
 AC123%22;%0A
-%09
+    
 public s
@@ -516,17 +516,20 @@
 %22xxx%22;%0A%0A
-%09
+    
 public s
@@ -588,18 +588,24 @@
 ption %7B%0A
-%09%09
+        
 TwilioRe
@@ -670,18 +670,24 @@
 OKEN);%0A%0A
-%09%09
+        
 // Build
@@ -716,18 +716,24 @@
 ageList%0A
-%09%09
+        
 List%3CNam
@@ -785,18 +785,24 @@
 air%3E();%0A
-%09%09
+        
 params.a
@@ -839,12 +839,24 @@
 y%22,%0A
-%09%09%09%09
+                
 %22Jen
@@ -881,26 +881,32 @@
  you %3C3%22));%0A
-%09%09
+        
 params.add(n
@@ -951,18 +951,24 @@
 345%22));%0A
-%09%09
+        
 params.a
@@ -1020,18 +1020,24 @@
 29%22));%0A%0A
-%09%09
+        
 MessageF
@@ -1101,18 +1101,24 @@
 tory();%0A
-%09%09
+        
 Message 
@@ -1162,10 +1162,16 @@
 s);%0A
-%09%09
+        
 Syst
@@ -1208,8 +1208,11 @@
 ));%0A
-%09
+    
 %7D%0A%7D

switch to spaces