[英]How to add and remove a user from multiple Call Queues at a time using RingCentral?
I have multiple RingCentral Call Queues and I want to build an app that allows users add and remove themselves from a set of pre-configured queues.我有多个 RingCentral 呼叫队列,我想构建一个应用程序,允许用户从一组预先配置的队列中添加和删除自己。 This is a mobile app that users will use and set their queue availability based on their physical location in a store, with each queue corresponding to a department so users can change the queues themselves as they move between departments.
这是一个移动应用程序,用户将使用它并根据他们在商店中的物理位置设置他们的队列可用性,每个队列对应一个部门,因此用户可以在部门之间移动时自己更改队列。
Given a list of Call Queues, I can update each queue at a time using the following API:给定一个呼叫队列列表,我可以使用以下 API 一次更新每个队列:
Assign Multiple Call Queue Members API分配多个呼叫队列成员 API
POST /restapi/v1.0/account/{accountId}/call-queues/{groupId}/bulk-assign
However, this can be a bit inefficient as updating each user may result in one API call per queue.但是,这可能有点低效,因为更新每个用户可能会导致每个队列调用一个 API。
Is there a way to add/remove a user from multiple queues with one API call?有没有办法通过一个 API 调用从多个队列中添加/删除用户?
The following API can be used.可以使用以下 API。 This adds and removes the user as a queue member.
这会添加和删除用户作为队列成员。
Join/Leave Call Queue API加入/离开呼叫队列 API
The following API will set a full use queue membership for all queues.以下 API 将为所有队列设置完全使用队列成员资格。 The user will be a member of all queues listed and not a member for any queue not listed.
用户将是所有列出的队列的成员,而不是任何未列出的队列的成员。
PUT /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-queues
{
"records": [
{"id":"11111111"},
{"id":"22222222"}
]
}
The response will look something like the following:响应将类似于以下内容:
{
"records": [ {
"id": "12345678",
"name": "Bakery"
}, {
"id": "87654321",
"name": "Cafe"
} ]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.