我試圖獲取報告天氣接收器是否收到了SMS? 我能夠發短信,但Twilio沒有不回電話,我已指定 以下網址是我的代碼片段: -使用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請求的網站(如http://uncurler.heroku.com/)來驗證回調網址是否被命中? –