Interface SmsClient

  • All Superinterfaces:
    io.vertx.up.plugin.TpClient<SmsClient>
    All Known Implementing Classes:
    SmsClientImpl

    public interface SmsClient
    extends io.vertx.up.plugin.TpClient<SmsClient>
    AliSmsClient for platform of https://dysms.console.aliyun.com/dysms.htm Message open sdk
    • Method Detail

      • createShared

        static SmsClient createShared​(io.vertx.core.Vertx vertx)
      • init

        SmsClient init​(io.vertx.core.json.JsonObject params)
        Specified by:
        init in interface io.vertx.up.plugin.TpClient<SmsClient>
      • send

        SmsClient send​(String mobile,
                       String tplCode,
                       io.vertx.core.json.JsonObject params,
                       io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
        Send messsage to mobile by template
        Parameters:
        mobile - mobile number
        tplCode - default template codes
        params - params for template
        Returns:
        self reference