返回顶部
t

twilio-commsTwilio通信

Twilio SMS, Voice, WhatsApp, and Verify (2FA) — send messages, make calls, and run verification flows from the CLI.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
130
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

twilio-comms

Twilio Comms

通过Twilio API自动执行短信、语音通话、WhatsApp消息和双因素认证流程。发送并跟踪消息、发起并监控外呼、发送WhatsApp模板或自由格式消息、运行完整的Verify 2FA流程——全部通过一个Python CLI工具完成。

设置

bash
export TWILIOACCOUNTSID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export TWILIOAUTHTOKEN=yourauthtoken_here
export TWILIOFROMNUMBER=+15550001234 # 你的Twilio号码
export TWILIOVERIFYSERVICE_SID=VAxx... # 可选,用于Verify/2FA

获取凭证:console.twilio.com → 账户信息。

命令/用法

bash

── 短信 ─────────────────────────────────────────────────


发送短信


python3 scripts/twilio_comms.py sms-send --to +61400000000 --body 来自Twilio的问候!
python3 scripts/twilio_comms.py sms-send --to +61400000000 --body 自定义发送者 --from +15550001234

列出最近消息

python3 scripts/twilio_comms.py sms-list python3 scripts/twilio_comms.py sms-list --limit 50 --to +61400000000

获取消息投递状态

python3 scripts/twilio_comms.py sms-status --sid SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

── 语音 ───────────────────────────────────────────────

发起外呼(播放TwiML消息)

python3 scripts/twilio_comms.py call-make --to +61400000000 --message 你好,这是一通自动语音电话。 python3 scripts/twilio_comms.py call-make --to +61400000000 --twiml-url https://demo.twilio.com/docs/voice.xml

列出最近通话

python3 scripts/twilio_comms.py call-list python3 scripts/twilio_comms.py call-list --limit 25 --status completed

获取通话详情和状态

python3 scripts/twilio_comms.py call-status --sid CAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

获取通话录音

python3 scripts/twilio_comms.py call-recordings --call-sid CAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

── WHATSAPP ────────────────────────────────────────────

发送自由格式WhatsApp消息(24小时会话窗口内)

python3 scripts/twilio_comms.py wa-send --to +61400000000 --body 来自通过Twilio发送的WhatsApp的问候!

发送模板消息(24小时窗口外)

python3 scripts/twilio_comms.py wa-template --to +61400000000 --template 您的预约已确认为{{1}}。 --params 周一 下午3点

── 验证/2FA ────────────────────────────────────────

发送验证码(短信或语音)

python3 scripts/twilio_comms.py verify-send --to +61400000000 python3 scripts/twilio_comms.py verify-send --to +61400000000 --channel voice

检查/验证验证码

python3 scripts/twilio_comms.py verify-check --to +61400000000 --code 123456

要求

  • - Python 3.8+
  • requests(pip install requests)
  • 环境变量:TWILIOACCOUNTSID、TWILIOAUTHTOKEN、TWILIOFROMNUMBER
  • 可选:用于Verify/2FA命令的TWILIOVERIFYSERVICE_SID

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 twilio-comms-1776112012 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 twilio-comms-1776112012 技能

通过命令行安装

skillhub install twilio-comms-1776112012

下载

⬇ 下载 twilio-comms v1.0.0(免费)

文件大小: 4.06 KB | 发布时间: 2026-4-14 10:17

v1.0.0 最新 2026-4-14 10:17
SMS, Voice, WhatsApp, Verify/2FA via Twilio API

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部