我正在使用 RingCentral RingOut API,我想知道是否可以阻止来电显示?
RingOut API 仅以phoneNumber
请求格式显示属性,但 RingCentral 在线帐户门户可以阻止呼叫者 ID。有没有办法做到这一点?
API 参考:https ://developer.ringcentral.com/api-docs/latest/index.html#!#RefMakeRingOut
要求:
POST /restapi/v1.0/account/~/extension/~/ring-out HTTP/1.1
{
"from": {"phoneNumber": "+14155550100"},
"callerId": {"phoneNumber": "+16505550100"},
"to": {"phoneNumber": "+12125550100"},
"playPrompt": true
}
我正在使用 Ruby SDK:https ://github.com/ringcentral/ringcentral-ruby
rc.post('/restapi/v1.0/account/~/extension/~/ring-out', payload: {
from: {phoneNumber: "+14155550100"},
callerId: {phoneNumber: "+16505550100"},
to: {phoneNumber: "+12125550100"},
playPrompt: true
})