Skip to content

OpenCustomerServiceChat

Parameters

PropertyTypeDefault ValueRequiredDescription
corpIdstringYesThe enterprise ID. Developers need to bind the mobile app (appid) with the enterprise ID on the WeChat customer service website.
urlstringYesCustomer service URL

Example

javascript
window.Wechat.openCustomerServiceChat({
  corpId: "xxxx", 
  url: "https://work.weixin.qq.com/kfid/kfcxxxxx"
}, function(res) {
     console.log('open success');
}, function(err) {
     console.error(err);
  }
);

Apache 2.0 License.