The documentation you are viewing is for Dapr v1.12 which is an older version of Dapr. For up-to-date documentation, see the latest version.
Twilio SMS绑定规范
Twilio SMS绑定组件详细文档
配置
要设置Twilio SMS绑定需要创建一个bindings.twilio.sms
类型的组件。 请参阅本指南,了解如何创建和应用绑定配置。
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
namespace: <NAMESPACE>
spec:
type: bindings.twilio.sms
version: v1
metadata:
- name: toNumber # required.
value: 111-111-1111
- name: fromNumber # required.
value: 222-222-2222
- name: accountSid # required.
value: *****************
- name: authToken # required.
value: *****************
Warning
以上示例将密钥明文存储, 更推荐的方式是使用 Secret 组件, 这里。元数据字段规范
字段 | 必填 | 绑定支持 | 详情 | 示例 |
---|---|---|---|---|
toNumber | 是 | 输出 | 要向其发送短信的目标号码 | "111-111-1111" |
fromNumber | 是 | 输出 | 发送人手机号码 | "122-222-2222" |
accountSid | 是 | 输出 | Twilio账号SID | "account sid" |
authToken | 是 | 输出 | Twilio身份验证token | "auth token" |
绑定支持
该组件支持如下操作的 输出绑定 :
create
相关链接
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.