簡體   English   中英

如何列出RingCentral問候?

[英]How to List RingCentral Greetings?

有沒有辦法得到問候清單? 我收到一個“方法不允許”響應,試圖調用此端點。 這是您需要在Beta程序中注冊的其他端點之一嗎?

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

我想使用這些ID通過POST API更新問候語:

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

問候語與特定的應答規則相關,您不能重復使用它們,因此沒有真正的理由來獲取問候語列表。 話雖如此,您可以通過調用Answering Rule API來枚舉系統中的問候語。

列舉

您可以通過調用回答規則的API查看問候語。 本示例顯示1個自定義問候語和一組默認問候語。

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

響應將有一組問候,如以下摘錄所示:

{
    "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"
            }
        }
    ],

您可以通過調用answering-rule端點來獲取answeringRuleId值的列表。 這將包括您business-hours-ruleafter-hours-rule ID,以及您的自定義回答規則:

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

刪除中

只要問候語不再被引用,就不能重復使用並從系統中刪除問候語。 您可以通過使用不同的問候語更新規則或刪除規則來做到這一點。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM