有什么方法可以得到问候的清单吗?我得到了一个“不允许的方法”响应,试图调用这个端点。这是你需要在Beta程序中注册的另一个端点吗?
GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting
我想使用这些I来使用POST API更新问候:
POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting/{greetingId}
发布于 2018-04-10 18:37:12
问候是相关的特定回答规则,您不能重用它们,因此没有真正的理由得到一个问候列表。尽管如此,您可以通过调用来枚举系统中的问候。
枚举
您可以通过为您的应答规则调用API来查看您的问候。此示例显示一个带有默认问候集的自定义问候语。
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"
}
}
],您可以通过调用answeringRuleId端点来获取answering-rule值的列表。这将包括business-hours-rule和after-hours-rule ids以及自定义应答规则:
GET /restapi/v1.0/account/~/extension/~/answering-rule
缺失
问候不能重复使用,只要不再引用,就可以从系统中删除。您可以通过用不同的问候语更新规则或删除规则来做到这一点。
https://stackoverflow.com/questions/49759866
复制相似问题