简体   繁体   English

如何使用 RingCentral 从多个呼叫队列中一次添加和删除用户?

[英]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.

相关问题 如何按用户关联RingCentral呼叫数据和Glip Post数据? - How to associate RingCentral call data and Glip post data by user? 使用RingCentral URI rcmobile时,停止使用RingCentral软电话进行自动拨号呼叫 - Stop RingCentral softphone from auto dialing call when using RingCentral URI rcmobile RingCentral Salesforce:如何使用RingCentral沙箱用户详细信息登录到应用程序 - RingCentral Salesforce: How do I login to app using RingCentral sandbox user details 如何在 RingCentral 帐户中创建用户? - How to create a user in RingCentral account? 使用RingCentral进行出站呼叫时如何禁用入站队列呼叫? - How to disable inbound queue calls when on an outbound call using RingCentral? 使用RingCentral API从多个扩展发送短信 - Send SMS from multiple extensions using RingCentral API 如何获得 RingCentral 呼叫队列成员可用性? - How to get RingCentral Call Queue Members Availability? 如何从受监控的来电中检索 RingCentral 通话录音? - How can I retrieve a RingCentral call recording from a monitored incoming call? 如何在使用授权代码流时让用户保持用户登录 RingCentral? - How can I keep user keep user logged in RingCentral while using Authorization code flow? 如何在 Ringcentral 中存档通话记录 - How to archive call log record in Ringcentral
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM