puzhibing
2023-08-22 00caef45a8833dc58919e23eb88a3484cfacdaa4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//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;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
///**
// * @author zhibing.pu
// * @date 2023/3/17 11:27
// */
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class TestGunsApplication {
//
//    @Autowired
//    private TinggPayoutUtil tinggPayoutUtil;
//
//
//    @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();
//        }
//    }
//}