侧边栏

文档首页


CRM扩展

数据接口

呼叫能力

Android IM SDK手册(暂停使用)

iOS IM SDK手册(暂停使用)

Android SIP SDK手册

iOS SIP SDK手册

客户端标准版快速集成

帮我吧远程SDK版本

网页在线客服集成

微信接入

帮我吧文档:能力接口:呼叫中心:高级接口

这是本文档旧的修订版!


初始化及登录

函数说明

BW8.CC.init(username,pwd,onConnection,onError);

参数说明

名称 类型 注释
usernamestring 帮我吧的客服账号
pwdstring客服账号对应的密码
onConnection回调函数用来接收系统消息推送。如果该参数为空,则执行系统默认消息处理。具体消息参见demo
onError回调函数用来接收系统错误消息。具体请参考返回值格式

说明:仅需在程序开始的时候调用一次。

外呼

函数说明

BW8.CC.call(number); 

参数说明

名称 类型 注释
numberstring 拨打的电话号码。支持手机和座机,如果对方是座机,则拨号为“01063701717”


通话挂断

函数说明

BW8.CC.hangUp();


呼叫弹屏

函数说明

function callPop(url, type){
    if(type == true){
        $('body').append('<div class="container-fluid callPop" id="callPop"><div class="header"><div class="pull-right"><span class="close_icon" onclick="callPop(\'\', false)"></span></div></div><div class="answer"><div class="col-xs-10 answer_left"><div class="pull-left"><span class="glyphicon glyphicon-earphone"></span> <input class="iphone_num" placeholder="'+BW8.CC.getCallNumber()+'" onkeyup="value=value.replace(/[^\d]/g,&quot;&quot;)"></div><div class="pull-right"><span class="iphone_time">00:00</span></div></div><div class="col-xs-2"><span class="hangup_bk" onclick="hangUp();"></span></div></div><div class="url_if_content"><iframe src="'+url+'" width="100%" frameborder="0" scrolling="" height="100%" border="none"></iframe></div></div>');
    }else{
        $('#callPop').remove();
    }
}

参数说明

名称 类型 注释
urlstring 弹屏里面要显示的第三方系统的信息页面。该页面默认宽度为593px,高度为362px。
typebool为“true”时,表示要弹屏;为“false”时,表示要关闭弹屏。默认为false。

说明:如果您想自定义弹屏样式,请直接修改函数里面的css样式


获取来电号码

BW8.CC.getCallNumber();


获取callid

BW8.CC.callid();


开启debug模式

BW8.CC.debug();

页面工具