首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何列出RingCentral问候?

如何列出RingCentral问候?
EN

Stack Overflow用户
提问于 2018-04-10 17:38:34
回答 1查看 38关注 0票数 0

有什么方法可以得到问候的清单吗?我得到了一个“不允许的方法”响应,试图调用这个端点。这是你需要在Beta程序中注册的另一个端点吗?

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

我想使用这些I来使用POST API更新问候:

POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting/{greetingId}

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-04-10 18:37:12

问候是相关的特定回答规则,您不能重用它们,因此没有真正的理由得到一个问候列表。尽管如此,您可以通过调用来枚举系统中的问候。

枚举

您可以通过为您的应答规则调用API来查看您的问候。此示例显示一个带有默认问候集的自定义问候语。

GET /restapi/v1.0/account/~/extension/~/answering-rule/{answeringRuleId}

如下面的节选所示,回复将有一组问候:

代码语言:javascript
复制
{
    "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/22222222/answering-rule/business-hours-rule",
    "id": "business-hours-rule",
    "type": "BusinessHours",
    "enabled": true,
    "schedule": {
        "ref": "BusinessHours"
    },
    "greetings": [
        {
            "type": "Voicemail",
            "custom": {
                "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/account/11111111/extension/22222222/greeting/33333333",
                "id": "33333333"
            }
        },
        {
            "type": "Introductory",
            "preset": {
                "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/greeting/66301",
                "id": "66301",
                "name": "None"
            }
        },
        {
            "type": "ConnectingAudio",
            "preset": {
                "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/greeting/66310",
                "id": "66310",
                "name": "Acoustic"
            }
        },
        {
            "type": "ConnectingMessage",
            "preset": {
                "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/greeting/68867",
                "id": "68867",
                "name": "Default"
            }
        },
        {
            "type": "HoldMusic",
            "preset": {
                "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/dictionary/greeting/197382",
                "id": "197382",
                "name": "Acoustic"
            }
        }
    ],

您可以通过调用answeringRuleId端点来获取answering-rule值的列表。这将包括business-hours-ruleafter-hours-rule ids以及自定义应答规则:

GET /restapi/v1.0/account/~/extension/~/answering-rule

缺失

问候不能重复使用,只要不再引用,就可以从系统中删除。您可以通过用不同的问候语更新规则或删除规则来做到这一点。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49759866

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档