ruby-on-rails - 如何在 twilio 上为会议参与者拨打分机号
问题描述
我有一个在电话会议中添加参与者的场景。我正在这样做
conference_name = "demo"
account_sid = "xyz"
auth_token = "xyz"
client = Twilio::REST::Client.new(account_sid, auth_token)
company_number_participent1 = client.conferences(conference_name).participants.create(from: 'xyz', to: "xyz")
customer_number_participent2 = client.conferences(conference_name).participants.create(from: 'xyz', to: 'xyz')
它工作正常。现在我想添加一个分机,一旦参与者添加到呼叫中。根据正常调用的 twilio 文档,我们可以,send_digits: '12#
为扩展添加一个参数。当我喜欢它时,它会给出一个错误。
company_number_participent = client.conferences(conference_name).participants.create(from: 'xyz', to: "xyz",send_digits: '1')
如何在 twilio 中拨打会议参与者的分机号?
解决方案
推荐阅读
- java - 类型安全 Map 的多种键类型
- travis-ci - 如何仅在使用 Travis 手动触发构建时采取特定操作
- android - 将 Kotlin 文件编译为 Dex 会生成 ClassNotFoundException (kotlin.jvm.internal.Intrinsics)
- java - 为什么我不能在不提供类型的情况下声明通用接口字段?
- excel - 使用特殊字符的 Excel VBA 条件格式
- python - 如何从烧瓶 wtform 获得时间间隔?
- python - 如何使用python在JSON输出上显示所有字符串匹配
- google-bigquery - Bigquery API 无法识别通配符表
- python - 使用 POST 方法使用 Django 获取 h7 标签的文本
- python-3.x - PyInstaller 不访问我在编译时捆绑的文件