수신자가 SMS 수신 여부를보고 날씨를 얻으려고합니까? 내가 SMS를 보낼 수 있어요하지만 Twilio 내가 다음 을 지정한 URL을 다시 호출하지 않는 것은 내 코드입니다 : -배달 보고서 Java를 사용하는 Twilio Rest API에서
// Create a rest client
TwilioRestClient client = new TwilioRestClient(com.main.Constants.ACCOUNT_SID, com.main.Constants.AUTH_TOKEN);
// Get the main account (The one we used to authenticate the client
Account mainAccount = client.getAccount();
// Get all accounts including sub accounts
AccountList accountList = client.getAccounts();
// Send an sms
SmsFactory smsFactory = mainAccount.getSmsFactory();
Map<String, String> smsParams = new HashMap<String, String>();
smsParams.put("To", number); // Replace with a valid phone
// number in your account
smsParams.put("From", com.main.Constants.FROM); // Replace with a valid
smsParams.put("StatusCallback", com.main.Constants.CALLBACKURL);
smsParams.put("Body", "Token : " + token);
sms = smsFactory.create(smsParams);
는
안녕하세요, 콜백 URL이 SMS 상태와 함께 맞아야합니다. http://backurler.heroku.com/와 같이 들어오는 HTTP 요청을 확인할 수있는 사이트에 설정하여 콜백 URL이 히트되지 않았는지 확인할 수 있습니까? –