首页 文章

RingCentral Call Log API是否返回“未接”值?

提问于
浏览
0

在RingCentral在线帐户门户(https://service.ringcentral.com)和 endpoints 应用程序中,呼叫日志显示屏显示呼叫是Inbound,Outbound还是Missed .

在查看Call Log API的API参考时,它似乎只发回“方向”的入站或出站 . 开发人员Call Log API是否返回“Missed”值?有没有其他方法可以通过Call Log API获取此信息?

参考:https://developer.ringcentral.com/api-docs/latest/index.html#!#RefCallLog.html

2 回答

  • 0

    此问题似乎是参考在线帐户门户网站UI的“类型”列,如此屏幕截图所示:

    enter image description here

    Web UI的"Type"列显示Inbound,Outbound或Missed . 这可以通过使用 directionresult 的响应属性生成 .

    • direction API响应属性为 InboundOutbound

    • result API响应属性是一个枚举值,包括 Missed 和其他值,包括 Voicemail ,这是示例屏幕截图 . 完整列表可在以下链接中找到:

    参考:https://developer.ringcentral.com/api-docs/latest/index.html#!#ResultStatusValues

    这是一个示例响应:

    {
        "uri": "https://platform.ringcentral.com/restapi/v1.0/account/11111111/call-log?view=Simple&showBlocked=true&withRecording=false&dateFrom=2018-08-27T06:18:00.000Z&page=1&perPage=100",
        "records": [
            {
                "uri": "https://platform.ringcentral.com/restapi/v1.0/account/11111111/call-log/22222222?view=Simple",
                "id": "22222222",
                "sessionId": "33333333",
                "startTime": "2018-08-27T17:38:12.634Z",
                "duration": 27,
                "type": "Voice",
                "direction": "Inbound",
                "action": "Phone Call",
                "result": "Missed",
                "to": {
                    "phoneNumber": "+16505550101"
                },
                "from": {
                    "phoneNumber": "+16505550102",
                    "name": "LOS ALTOS    CA",
                    "location": "Los Altos, CA"
                }
            }
        ],
        ...
    }
    
  • 0

    请阅读此blog以查找可从通话记录中找到的更多信息 .

相关问题