api - RingCentral 在发送传真时给我“[OutboundFaxes]”错误
问题描述
我正在尝试使用以下 URL 使用 POSTMAN 发送传真"https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/****88004/fax"
,我得到:
{
"errorCode": "CMN-408",
"message": "In order to call this API endpoint, user needs to have [OutboundFaxes] permission for requested resource.",
"errors": [
{
"errorCode": "CMN-408",
"message": "In order to call this API endpoint, user needs to have [OutboundFaxes] permission for requested resource.",
"permissionName": "OutboundFaxes"
}
],
"permissionName": "OutboundFaxes"
}
解决方案
发送传真请求时不记名令牌出现问题。
因为我使用主帐户详细信息来生成令牌,并且在发送传真时我使用的是扩展 102 的扩展 ID,并且承载令牌是使用主帐户扩展 101 生成的。这就是它抛出 [OutboundFaxes] 权限错误的原因。
要使用扩展名 102 的 ExtensionId 发送传真,然后使用子帐户 102 详细信息而不是主帐户生成令牌。
推荐阅读
- node.js - Docker 发布的端口除了 3000 外不可访问
- mysql - 查找“下一个”行
- checksum - 在存在小覆盖的情况下进行高效的整个文件 CRC 计算
- php - Ratchet - 如何防止其他网站连接到我的 websocket 服务器?
- kotlin - 在 Arrow 中,traverse 消耗一个序列而不是线程化计算
- eclipse - 如何在 Eclipse 中调试 kotlin spring boot 应用程序?
- ml.net - 如何在中间件(ML.NET)中将模型添加到 PredictionEnginePool?
- html - Google Material Design 是否支持 RTL 布局?
- shell - 无法在 unix 中的 if else 语句中比较字符串
- docker - 为什么我在运行 docker 映像时一直在 localhost 上看到 nginx index.html