nexmo发送成功,但没有收到短信

nexmo发送成功,没有接收到短信

今天下午公司项目需要java调用nexmo的接口来发送短信,代码如下

import com.nexmo.client.NexmoClient;
import com.nexmo.client.NexmoClientException;
import com.nexmo.client.auth.AuthMethod;
import com.nexmo.client.auth.TokenAuthMethod;
import com.nexmo.client.sms.SmsSubmissionResult;
import com.nexmo.client.sms.messages.TextMessage;

import java.io.IOException;

public class sendMessage {
    private static final String API_KEY="xxxxxx";
    private static final String API_SECRET="xxxxxx";
    public static void main(String[] args){


        AuthMethod auth = new TokenAuthMethod(API_KEY,API_SECRET);
        NexmoClient client = new NexmoClient(auth);
        System.out.println("从:17777777777");
        try {
            SmsSubmissionResult[] responses = client.getSmsClient().submitMessage(new TextMessage(
                    "17777777777",
                    "8617777777777",
                    "Hello from Nexmo!"));
            System.out.println("发送成功!");
            for (SmsSubmissionResult response : responses) {
                System.out.println(response);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NexmoClientException e) {
            e.printStackTrace();
        }
    }
}
这个代码我执行了多次,返回的status:0,就是成功的意思,nexmo的后台搜索对应的MSG-ID都显示发送成功,并且余额也扣除了.但是只收到一次短信(第四次发送请求收到).
有哪位仁兄能帮忙解答下吗?万分感激!

你可能感兴趣的:(短信验证)