开启客服的参数说明
回答:
开启客服的API ,如下:
IMKit的接口:
/**
* 启动客户服聊天界面。
*
* @param context 应用上下文。
* @param customerServiceId 要与之聊天的客服 Id。
* @param title 聊天的标题。开发者需要在聊天界面通过intent.getData().getQueryParameter("title")获取该值, 再手动设置为聊天界面的标题。
* @param customServiceInfo 当前使用客服者的用户信息。{@link io.rong.imlib.model.CSCustomServiceInfo}
*/
public void startCustomerServiceChat(Context context, String customerServiceId, String title, CSCustomServiceInfo customServiceInfo)
其中 startCustomerServiceChat 第二个参数 customerServiceId 即客服 id, 需要去融云开发者后台获取,每个应用有一个免费的客服 Id, 如果需要开启多客服 id,请联系商务。到开发者后台,选择“客服服务”下面的“客服管理”,在对应的“开发环境”或“生产环境”下面各有一个免费的客服 id, 见下图:
第四个参数 customServiceInfo 即用户信息,此参数为保留参数,目前SDK默认对接的智齿客服未使用。因此通过此参数向智齿客服后台传递的用户信息无效。智齿客服后台显示的用户信息是获取token时上传的用户信息。