public interface SmsClient extends io.vertx.up.plugin.TpClient<SmsClient>
AliSmsClient for platform of https://dysms.console.aliyun.com/dysms.htm Message open sdk
| Modifier and Type | Method and Description |
|---|---|
static SmsClient |
createShared(io.vertx.core.Vertx vertx) |
SmsClient |
init(io.vertx.core.json.JsonObject params) |
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
|
static SmsClient createShared(io.vertx.core.Vertx vertx)
SmsClient init(io.vertx.core.json.JsonObject params)
init in interface io.vertx.up.plugin.TpClient<SmsClient>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
mobile - mobile numbertplCode - default template codesparams - params for templateCopyright © 2020. All rights reserved.