package textedu;

import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.factory.MessageFactory;
import com.twilio.sdk.resource.instance.Message;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
 
import java.util.ArrayList;
import java.util.List;
 
public class TwilioTesting {
 
  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACcf7d3c095e02fbdc4e81f1d11d12b298";
  public static final String AUTH_TOKEN = "2bd6a88aaa07d43ac5907572d64e03c6";
 
  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", "Twilio says hi"));
    params.add(new BasicNameValuePair("To", "+12404212522"));
    params.add(new BasicNameValuePair("From", "+12408550496"));
 
    MessageFactory messageFactory = client.getAccount().getMessageFactory();
    Message message = messageFactory.create(params);
    System.out.println("Message SID:" + message.getSid());
  }
  
}
@@ -485,42 +485,11 @@
  = %22
-ACcf7d3c095e02fbdc4e81f1d11d12b298
+123
 %22;%0A 
@@ -534,40 +534,11 @@
  = %22
-2bd6a88aaa07d43ac5907572d64e03c6
+123
 %22;%0A 
@@ -1185,8 +1185,9 @@
   %7D%0A  %0A%7D
+%0A

Update TwilioTesting.java