阿里云api GateWay调用


        String json = "{\"name\": \"张三\"}";
        byte[] body = json.getBytes();
        SyncApiClient_winner_api testClient = SyncApiClient_winner_api.newBuilder()
                .appKey("")
                .appSecret("")
                .build();
        ApiResponse response = testClient.getName(body);
        System.out.println(response.getStatusCode());
        String s = new String(response.getBody(), "UTF-8");
        System.out.println(s);

猜你喜欢

转载自blog.csdn.net/zhangweibin123/article/details/81282055