Twilio REST 绑定资源错误 "Could not match service instance to account"
Twilio REST BindingResource Error "Could not match service instance to account"
我正在尝试为 FCM 创建一个新的 BindingResource 但它 returns
"Could not match service instance to account"
这是我的代码
var binding = BindingResource.Create(
pathServiceSid: "ISXXXXservice_sid",
identity: TwilioHelper.Identity,
bindingType: BindingResource.BindingTypeEnum.Fcm,
address: this.ApiClient.IAuth.GetDeviceToken()
);
据我了解,我的 ServiceSID(可编程聊天服务)未注册或不存在于我们的帐户中,但事实并非如此。我很确定,我的 ServiceSID 确实存在并且正确。
我是不是漏掉了什么?
这里是 Twilio 开发人员布道者。
Chat Bindings documentation 表示如下:
Bindings for Programmable Chat are created and updated by the chat client SDKs, with the ability to list, inspect and remove bindings being offered through the REST API.
我猜你正在使用 Twilio Notify Binding resource which can be accessed from the REST API but requires a Notify service and you're giving it a Chat service.
尽管如文档所述,这应该通过客户端 SDK 处理。
我正在尝试为 FCM 创建一个新的 BindingResource 但它 returns
"Could not match service instance to account"
这是我的代码
var binding = BindingResource.Create(
pathServiceSid: "ISXXXXservice_sid",
identity: TwilioHelper.Identity,
bindingType: BindingResource.BindingTypeEnum.Fcm,
address: this.ApiClient.IAuth.GetDeviceToken()
);
据我了解,我的 ServiceSID(可编程聊天服务)未注册或不存在于我们的帐户中,但事实并非如此。我很确定,我的 ServiceSID 确实存在并且正确。
我是不是漏掉了什么?
这里是 Twilio 开发人员布道者。
Chat Bindings documentation 表示如下:
Bindings for Programmable Chat are created and updated by the chat client SDKs, with the ability to list, inspect and remove bindings being offered through the REST API.
我猜你正在使用 Twilio Notify Binding resource which can be accessed from the REST API but requires a Notify service and you're giving it a Chat service.
尽管如文档所述,这应该通过客户端 SDK 处理。