skip to Main Content

Twillio – Requested resource Messages.json was not found

can anyone tell me how to resolve this problem. Java code is like below. @Service public class TwilioServiceProvider { private static final String ACCOUNT_SID = "ACbfadc94adf90fd6606222566aab3ef4"; private static final String AUTH_TOKEN = "f***********************"; public void sendMessage(String mobileNo){ Twilio.init(ACCOUNT_SID,AUTH_TOKEN); Message message…

VIEW QUESTION

sending SMS using Twillio in android

I am Using the Below Code ....But The SMS Does not Come... private void sendSms(String toPhoneNumber, String message){ OkHttpClient client = new OkHttpClient(); String ACCOUNT_SID="XXXXXXXXXXXXXXXXXXXXXXXXXX"; String AUTH_TOKEN="XFAXXXXXXXXXXXXXXXXXXXXXXXXX"; String url = "https://api.twilio.com/2010-04-01/Accounts/"+ACCOUNT_SID+"/SMS/Messages"; String base64EncodedCredentials = "Basic " + Base64.encodeToString((ACCOUNT_SID + ":"…

VIEW QUESTION

Twilio: java.lang.NoClassDefFoundError: com/twilio/sdk/TwilioRestException – Twillio

I am trying to send a sms using twillio, here the code: import com.twilio.sdk.TwilioRestClient; import com.twilio.sdk.TwilioRestException; import org.apache.http.NameValuePair; import org.apache.http.auth.Credentials; import org.apache.http.message.BasicNameValuePair; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; public class…

VIEW QUESTION
Back To Top
Search