HWH5.makePhoneCall
支持版本>=10.0.2
根据dialNumber, makeWay打开语音通话界面(需要对应的租户开通外呼权限)
扫码体验:

请求参数
参数 |
类型 |
必填 |
说明 |
dialNumber |
String |
是 |
必传,手机或座机号码,不支持拨打国际电话,国内座机格式:区号-座机号码、区号座机号码 |
makeWay |
Number |
是 |
必传,1回拨 |
返回结果
参数 |
说明 |
code |
1 拨号失败; 0 成功,调起正在拨打电话页面。 |
message |
失败说明。 |
请求示例
ES6版本
HWH5.makePhoneCall({
dialNumber: '18066668888',
makeWay: 0
}).then(reply => {
console.log(reply);
}).catch(error => {
console.log('请求异常', error);
});
ES5版本
HWH5.makePhoneCall({
dialNumber: '18066668888',
makeWay: 0
}).then(function (reply) {
console.log(reply);
}).catch(function (error) {
console.log('请求异常', error);
});