aliyun-sms

Aliyun SMS

Лицензия

Лицензия

Группа

Группа

com.pig4cloud.plugin
Идентификатор

Идентификатор

aliyun-sms-core
Последняя версия

Последняя версия

1.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

aliyun-sms
Aliyun SMS
Ссылка на сайт

Ссылка на сайт

https://github.com/cn-src/aliyun-sms
Система контроля версий

Система контроля версий

https://github.com/cn-src/aliyun-sms.git

Скачать aliyun-sms-core

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.pig4cloud.plugin/aliyun-sms-core/ -->
<dependency>
    <groupId>com.pig4cloud.plugin</groupId>
    <artifactId>aliyun-sms-core</artifactId>
    <version>1.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.pig4cloud.plugin/aliyun-sms-core/
implementation 'com.pig4cloud.plugin:aliyun-sms-core:1.3.0'
// https://jarcasting.com/artifacts/com.pig4cloud.plugin/aliyun-sms-core/
implementation ("com.pig4cloud.plugin:aliyun-sms-core:1.3.0")
'com.pig4cloud.plugin:aliyun-sms-core:jar:1.3.0'
<dependency org="com.pig4cloud.plugin" name="aliyun-sms-core" rev="1.3.0">
  <artifact name="aliyun-sms-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.pig4cloud.plugin', module='aliyun-sms-core', version='1.3.0')
)
libraryDependencies += "com.pig4cloud.plugin" % "aliyun-sms-core" % "1.3.0"
[com.pig4cloud.plugin/aliyun-sms-core "1.3.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.aliyun : aliyun-java-sdk-core jar 4.5.0
org.slf4j : jcl-over-slf4j jar

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok Необязательный jar

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar

Модули Проекта

Данный проект не имеет модулей.

License Maven Central Build Status

aliyun-sms

阿里云 SMS 短信 Java SDK 封装

Github & Issues: https://github.com/cn-src/aliyun-sms

使用

  1. 添加依赖
<dependency>
    <groupId>cn.javaer.aliyun</groupId>
    <artifactId>aliyun-sms</artifactId>
    <version>1.2.0</version>
</dependency>
  1. 样例
SmsClient smsClient = new SmsClient(accessKeyId, accessKeySecret);
SmsTemplate smsTemplate = SmsTemplate.builder()
            .signName(signName)
            .templateCode(templateCode)
            .addTemplateParam("code", "123456")
            .phoneNumbers(phoneNumber)
            .build();
smsClient.send(smsTemplate);            

spring boot 集成

  1. 添加依赖
<dependency>
    <groupId>cn.javaer.aliyun</groupId>
    <artifactId>aliyun-spring-boot-starter-sms</artifactId>
    <version>1.2.0</version>
</dependency>
  1. 配置
aliyun.sms.accessKeyId=
aliyun.sms.accessKeySecret=
aliyun.sms.signName=
aliyun.sms.templates.key1.templateCode=
  1. 样例
    @Autowired
    private SmsClient smsClient;

官方文档:https://help.aliyun.com/document_detail/55284.html?spm=5176.8195934.1001856.3.5cd64183fNqodO

Версии библиотеки

Версия
1.3.0
1.2.1