接口文档
步骤
- 配置短信签名
- 申请短信模板
- 下载相关sdk文件包
一、配置签名
二、配置短信模板
三、下载相关sdk文件
sdk下载地址入口:
https://help.aliyun.com/document_detail/55359.html?spm=5176.11065259.1996646101.searchclickresult.d0a31a71oq0HYi
sdk的目录清单
api_demo(短信服务API接口调用DEMO工程)——提供了相关的短信的demo,可以通过修改相关的属性,直接使用。
api_sdk(短信服务API接口依赖的SDK)——提供了相关的jar包和maven坐标等。
msg_demo(短信回执消息的DEMO)
msg_sdk(短信回执消息的SDK)
四、自定义短信方式
1、引入相关的jar包或者maven
<span style="color:rgba(0, 0, 0, 0.75)"><span style="background-color:#ffffff"><span style="color:#000000"><code class="language-xml"><span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"><</span>dependency</span><span style="color:#999999">></span></span>
<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"><</span>groupId</span><span style="color:#999999">></span></span>com.aliyun<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"></</span>groupId</span><span style="color:#999999">></span></span>
<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"><</span>artifactId</span><span style="color:#999999">></span></span>aliyun-java-sdk-core<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"></</span>artifactId</span><span style="color:#999999">></span></span>
<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"><</span>version</span><span style="color:#999999">></span></span>4.0.6<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"></</span>version</span><span style="color:#999999">></span></span> <span style="color:#969896"><!-- 注:如提示报错,先升级基础包版,无法解决可联系技术支持 --></span>
<span style="color:#cc6666"><span style="color:#cc6666"><span style="color:#999999"></</span>dependency</span><span style="color:#999999">></span></span>
</code></span></span></span>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
<version>1.1.0</version>
</dependency>
- 1
- 2
- 3
- 4