如何获得用户的呼叫队列/部门? [英] How can I get a user's call queue / department?

查看:156
本文介绍了如何获得用户的呼叫队列/部门?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有用户的extensionId,如何获取用户的呼叫队列/部门信息,例如像"department": "Sales"这样的特定团队.

If I have a user's extensionId, how can I get the user's call queue / department info, e.g. a specific team like "department": "Sales".

我知道我可以呼叫以下端点并使用以下命令获取呼叫队列/部门的列表,但我想要一个特定于用户的列表:

I know I can call the following endpoint and get a list of call queues / departments using the following, but I want a list specific to a user:

列表调用队列API

GET /restapi/v1.0/account/{accountId}/call-queues

获取扩展程序列表API

GET /restapi/v1.0/account/{accountId}/extension?type=Department

一旦有了队列groupId,我还可以获得每个队列的成员列表:

Once I have the queue groupId, I can also get a list of members per queue:

获取呼叫队列成员API

GET /restapi/v1.0/account/{accountId}/call-queues/{groupId}/members

推荐答案

用户可以是多个呼叫队列的成员.要获取列表,请调用用户的扩展信息端点,并在JSON响应正文中查找departments属性.

A user can be a member of multiple call queues. To get a list, call the user's extension info endpoint and look for the departments property in the JSON response body.

请求:

GET /restapi/v1.0/account/{accountId}/extension/{extensionId}

响应:

响应将具有许多属性.下面是摘录,显示了department属性.

The response will have a number of properties. The below is an excerpt that shows the department property.

{
    "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/22222222",
    "id": 22222222,
    "extensionNumber": "102",
    "name": "Tiger RingForce",
    "type": "User",
    "status": "Enabled",
    "departments": [
        {
            "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/33333333",
            "id": "33333333",
            "extensionNumber": "201"
        },
        {
            "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/44444444",
            "id": "44444444",
            "extensionNumber": "202"
        }
    ],
    ...
}

这篇关于如何获得用户的呼叫队列/部门?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆