@@ -47,6 +47,7 @@ public static void main(String[] args) {
47
47
// testCreateSign();pass
48
48
// testUpdateSign();no pass
49
49
// testCheckSign();pass
50
+ testDeleteSign ();
50
51
// testSendVoiceSMSCode();
51
52
// testSendTemplateSMS();
52
53
}
@@ -464,20 +465,19 @@ public static void testCheckSign(){
464
465
}
465
466
}
466
467
467
- // public static void testDefaultSign(){
468
- // try {
469
- // SMSClient client = new SMSClient(masterSecret, appkey);
470
- // DefaultSignPayload payload = DefaultSignPayload.newBuilder().
471
- // id(10859).name("SDK6").build();
472
- // ResponseWrapper result = client.setDefaultSign(payload);
473
- // LOG.info(result.toString());
474
- // }catch (APIConnectionException e) {
475
- // LOG.error("Connection error. Should retry later. ", e);
476
- // } catch (APIRequestException e) {
477
- // LOG.error("Error response from JPush server. Should review and fix it. ", e);
478
- // LOG.info("HTTP Status: " + e.getStatus());
479
- // LOG.info("Error Message: " + e.getMessage());
480
- // }
481
- // }
468
+ public static void testDeleteSign (){
469
+ try {
470
+ SMSClient client = new SMSClient (masterSecret , appkey );
471
+ ResponseWrapper result = client .deleteSign (10859 );
472
+ LOG .info (result .toString ());
473
+ }catch (APIConnectionException e ) {
474
+ LOG .error ("Connection error. Should retry later. " , e );
475
+ } catch (APIRequestException e ) {
476
+ LOG .error ("Error response from JPush server. Should review and fix it. " , e );
477
+ LOG .info ("HTTP Status: " + e .getStatus ());
478
+ LOG .info ("Error Message: " + e .getMessage ());
479
+ }
480
+ }
481
+
482
482
483
483
}
0 commit comments