| | |
| | | //package com.stylefeng.guns; |
| | | // |
| | | //import com.alibaba.fastjson.JSON; |
| | | //import com.stylefeng.guns.modular.system.util.SMSUtil; |
| | | //import com.stylefeng.guns.modular.system.util.Tingg.TinggPayoutUtil; |
| | | //import com.stylefeng.guns.modular.system.util.Tingg.model.PayoutResponse; |
| | | //import com.twilio.Twilio; |
| | | //import com.twilio.http.TwilioRestClient; |
| | | //import com.twilio.rest.api.v2010.Account; |
| | |
| | | // @Autowired |
| | | // private TinggPayoutUtil tinggPayoutUtil; |
| | | // |
| | | // @Autowired |
| | | // private SMSUtil smsUtil; |
| | | // |
| | | // |
| | | // @Test |
| | | // public void test(){ |
| | | // String ACCOUNT_SID = "AC1fd05e898bd59d17ba72db621afca537"; |
| | | // String AUTH_TOKEN = "7cee1a6cb0e2936a9037be577b1ffe57"; |
| | | // try { |
| | | // Twilio.init(ACCOUNT_SID, AUTH_TOKEN); |
| | | // Message message = Message.creator( |
| | | // new PhoneNumber("+233500666666"), |
| | | // new PhoneNumber("+16672740015"), |
| | | // "This is the ship that made the Kessel Run in fourteen parsecs?" |
| | | // ).create(); |
| | | // System.out.println(message.getSid()); |
| | | // }catch (Exception e){ |
| | | // e.printStackTrace(); |
| | | // } |
| | | // smsUtil.sendCellulantMessage("233203716998", "您的验证码为:123456,该验证码5分钟内有效,请勿泄漏于他人!"); |
| | | // } |
| | | //} |