{"id":15294784,"url":"https://github.com/cn-src/aliyun-sms","last_synced_at":"2025-04-13T14:54:20.732Z","repository":{"id":57715957,"uuid":"120580458","full_name":"cn-src/aliyun-sms","owner":"cn-src","description":"阿里云 SMS 短信 Java SDK 封装","archived":false,"fork":false,"pushed_at":"2019-04-22T07:00:35.000Z","size":103,"stargazers_count":81,"open_issues_count":2,"forks_count":36,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T14:54:08.624Z","etag":null,"topics":["aliyun","sms","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cn-src.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-07T07:38:25.000Z","updated_at":"2025-03-25T02:17:25.000Z","dependencies_parsed_at":"2022-09-12T08:41:43.060Z","dependency_job_id":null,"html_url":"https://github.com/cn-src/aliyun-sms","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cn-src%2Faliyun-sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cn-src%2Faliyun-sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cn-src%2Faliyun-sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cn-src%2Faliyun-sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cn-src","download_url":"https://codeload.github.com/cn-src/aliyun-sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732512,"owners_count":21152851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliyun","sms","springboot"],"created_at":"2024-09-30T17:06:57.501Z","updated_at":"2025-04-13T14:54:20.672Z","avatar_url":"https://github.com/cn-src.png","language":"Java","funding_links":[],"categories":["短信"],"sub_categories":["文件同步"],"readme":"[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![Maven Central](https://img.shields.io/maven-central/v/cn.javaer.aliyun/aliyun-sms.svg)\n[![Build Status](https://travis-ci.org/cn-src/aliyun-sms.svg?branch=master)](https://travis-ci.org/cn-src/aliyun-sms)\n# aliyun-sms\n阿里云 SMS 短信 Java SDK 封装\n\nGithub \u0026 Issues: [https://github.com/cn-src/aliyun-sms](https://github.com/cn-src/aliyun-sms)\n\n# 使用\n1. 添加依赖\n``` xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.javaer.aliyun\u003c/groupId\u003e\n    \u003cartifactId\u003ealiyun-sms\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n2. 样例\n```java\nSmsClient smsClient = new SmsClient(accessKeyId, accessKeySecret);\nSmsTemplate smsTemplate = SmsTemplate.builder()\n            .signName(signName)\n            .templateCode(templateCode)\n            .addTemplateParam(\"code\", \"123456\")\n            .phoneNumbers(phoneNumber)\n            .build();\nsmsClient.send(smsTemplate);            \n```\n\n# spring boot 集成\n1. 添加依赖\n``` xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.javaer.aliyun\u003c/groupId\u003e\n    \u003cartifactId\u003ealiyun-spring-boot-starter-sms\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n2. 配置\n\n```\naliyun.sms.accessKeyId=\naliyun.sms.accessKeySecret=\naliyun.sms.signName=\naliyun.sms.templates.key1.templateCode=\n```\n\n3. 样例\n\n```java\n    @Autowired\n    private SmsClient smsClient;\n```\n\n[官方文档:https://help.aliyun.com/document_detail/55284.html?spm=5176.8195934.1001856.3.5cd64183fNqodO](https://help.aliyun.com/document_detail/55284.html?spm=5176.8195934.1001856.3.5cd64183fNqodO)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcn-src%2Faliyun-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcn-src%2Faliyun-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcn-src%2Faliyun-sms/lists"}