如何获取短信运营商的错误码
private static void getResult(String rec, String date){
TaobaoClient client1 = new DefaultTaobaoClient('your_url', 'your_appkey', 'your_secret');
AlibabaAliqinFcSmsNumQueryRequest req1 = new AlibabaAliqinFcSmsNumQueryRequest();
req1.setRecNum(your_rec);
req1.setQueryDate(date);
req1.setCurrentPage(1L);
req1.setPageSize(10L);
AlibabaAliqinFcSmsNumQueryResponse rsp1;
try {
rsp1 = client1.execute(req1);
System.out.println(rsp1.getBody());
} catch (ApiException e) {
e.printStackTrace();
}
}
有另一套查询接口,由于信息发送是异步的,可能短信发送API接口调用后几秒钟才能查到发送状态
赞0
踩0