2

我正在尝试使用以下 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"
}
4

2 回答 2

3

发送传真请求时不记名令牌出现问题。

因为我使用主帐户详细信息来生成令牌,并且在发送传真时我使用的是扩展 102 的扩展 ID,并且承载令牌是使用主帐户扩展 101 生成的。这就是它抛出 [OutboundFaxes] 权限错误的原因。

要使用扩展名 102 的 ExtensionId 发送传真,然后使用子帐户 102 详细信息而不是主帐户生成令牌。

于 2018-05-21T10:19:53.807 回答
2

我已经成功重现了这个问题。

测试用例

根本原因正是@Jack 所说的:使用分机 101 授权,然后尝试使用分机 102 发送传真。

错误信息是

{ 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' }

我认为错误消息需要改进。通过阅读很难找出根本原因。我已将此问题报告给 RingCentral 工程团队。

于 2018-05-23T08:08:54.053 回答