firebase messagebird扩展不发送短信
我无法通过Firebase扩展程序成功处理SMS的发送。附件是我的JS代码的代码,用于在Firestore集合中生成文档,以及扩展名创建的文档,您可以在其中看到接收到的参数和错误。我已经与Messagebird的支持进行了交谈,但他们无法处理此错误。问题必须在于燃料。
firestoredb.collection('messages').add({
channelId: 'mychannelID',
originator : 'Testing',
recipients : ['34689454416'],
type: 'sms',
body : 'This is a test',
});
firestore文档数据和错误:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我查看带有messagesbird 扩展程序,他们显示以下代码示例发送消息:
基于此,您似乎需要在名为
to
的字段中指定收件人,而您的字段名为收件人
。If I look at the documentation for the Send Messages with MessageBird extension, they show the following code sample for sending a message:
Based on that, it seems you need to specify the recipient(s) in a field named
to
, while you have field namedrecipients
.