| | |
| | | //package com.stylefeng.guns; |
| | | // |
| | | //import com.stylefeng.guns.modular.system.util.Tingg.TinggPayoutUtil; |
| | | //import com.twilio.Twilio; |
| | | //import com.twilio.http.TwilioRestClient; |
| | | //import com.twilio.rest.api.v2010.Account; |
| | | //import com.twilio.rest.api.v2010.account.Message; |
| | | //import com.twilio.type.PhoneNumber; |
| | | //import org.junit.Test; |
| | | //import org.junit.runner.RunWith; |
| | | //import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | // |
| | | // @Test |
| | | // public void test(){ |
| | | // tinggPayoutUtil.sendPayout("GH-MTN-B2C", "+233277211131", "00007", 1D, "https://10pz685243.zicp.fun/base/IGO/tinggPayoutCallback", "Transfer remittance"); |
| | | // 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(); |
| | | // } |
| | | // } |
| | | //} |