Nov 8, 2017
[maven-release-plugin] copy for tag jsms-client-1.2.7

@KenChoi1992 KenChoi1992 released this Oct 17, 2017 · 11 commits to master since this release

Assets 3

Change Log

  • Add Template API
    usage:
    refer to JSMSExample.java
Sep 11, 2017
[maven-release-plugin] copy for tag jsms-client-1.2.5
Sep 11, 2017
[maven-release-plugin] copy for tag jsms-client-1.2.4

@KenChoi1992 KenChoi1992 released this Aug 7, 2017 · 28 commits to master since this release

Assets 3

Change Log

  • 新增批量发送模板短信接口,用法参考 JSMSExample

@KenChoi1992 KenChoi1992 released this Aug 1, 2017 · 33 commits to master since this release

Assets 3

改动日志

  • 新增定时短信相关 API
  • 新增短信余量查询相关 API
    使用方式参考 JSMSExample

Change Log

  • Add Schedule SMS APIs
  • Add check SMS balance APIs
    Please refer to JSMSExample for detail.

@KenChoi1992 KenChoi1992 released this Apr 1, 2017 · 41 commits to master since this release

Assets 3

改动日志

  • 使用 jiguang-common v1.0.5
  • SMSClient 可以设置使用哪个 HttpClient 发送请求。

Example:

 public static void testSendSMSWithIHttpClient() {
        SMSClient client = new SMSClient(masterSecret, appkey);
        String authCode = ServiceHelper.getBasicAuthorization(appkey, masterSecret);
        ApacheHttpClient httpClient = new ApacheHttpClient(authCode, null, ClientConfig.getInstance());
        // NettyHttpClient httpClient = new NettyHttpClient(authCode, null, ClientConfig.getInstance());
        // 可以切换 HttpClient,默认使用的是 NativeHttpClient
        client.setHttpClient(httpClient);
        // 如果使用 NettyHttpClient,发送完请求后要调用 close 方法
        // client.close();
        SMSPayload payload = SMSPayload.newBuilder()
                .setMobildNumber("13800138000")
                .setTempId(1)
                .build();
        try {
            SendSMSResult res = client.sendSMSCode(payload);
            System.out.println(res.toString());
            LOG.info(res.toString());
        } catch (APIConnectionException e) {
            LOG.error("Connection error. Should retry later. ", e);
        } catch (APIRequestException e) {
            LOG.error("Error response from JPush server. Should review and fix it. ", e);
            LOG.info("HTTP Status: " + e.getStatus());
            LOG.info("Error Message: " + e.getMessage());
        }
    }

@KenChoi1992 KenChoi1992 released this Nov 1, 2016 · 49 commits to master since this release

Assets 4

-去掉号码验证,解决支持号段问题(交给服务端验证)