azure-communication-sms-java
使用 Azure 通信服务发送短信
使用 Azure 通信服务从 Java 应用程序发送短信。支持单条消息、批量发送、投递报告和 OTP 通知。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“azure-communication-sms-java”。 Send SMS to +14255551234
预期结果:
消息发送成功。消息 ID: abc123, 状态: 成功
正在使用“azure-communication-sms-java”。 Send bulk SMS to 100 recipients
预期结果:
批量完成: 98 条已投递, 2 条失败(号码无效)
正在使用“azure-communication-sms-java”。 Check delivery status
预期结果:
投递报告: 消息已投递至 +14255551234,时间 2024-01-15T10:30:00Z
安全审计
安全This is a legitimate Azure Communication Services SMS Java SDK documentation skill. The static analyzer flagged 40 potential issues, but after evaluation, all findings are FALSE POSITIVES: backticks are markdown code block syntax (not shell commands), URLs are placeholder examples in documentation, and code references are standard error handling patterns. No security risks identified.
高风险问题 (1)
中风险问题 (3)
质量评分
你能构建什么
双因素认证
发送 OTP 码进行用户验证和账户安全
交易通知
发送订单确认、物流更新和支付提醒
营销活动
向客户群组发送批量促销信息
试试这些提示
Use the azure-communication-sms-java skill to send a verification code '+14255551234' from my Azure ACS number
Use the azure-communication-sms-java skill to send a flash sale notification to multiple recipients with delivery reporting enabled
Use the azure-communication-sms-java skill to send async bulk messages to a list of phone numbers with tagging for tracking
Use the azure-communication-sms-java skill to show how to handle rate limiting errors and invalid phone numbers when sending SMS
最佳实践
- 始终使用 E.164 电话号码格式(+[国家代码][号码])
- 为 OTP 等关键消息启用投递报告
- 对 429 错误实施指数退避重试逻辑
避免
- 不要在源代码中硬编码连接字符串 - 请使用环境变量
- 不要在没有队列的情况下在高频 API 中同步发送短信
- 不要跳过错误处理 - 单个收件人可能失败而其他收件人成功
常见问题
支持哪些身份验证方法?
需要什么格式的电话号码?
如何启用投递报告?
如果某个收件人的消息发送失败会怎样?
是否有速率限制?
可以发送到国际号码吗?
开发者详情
作者
sickn33许可证
MIT
仓库
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-communication-sms-java引用
main
文件结构
📄 SKILL.md