# 解除公众号、小程序绑定-开放接口

# 配置信息

例如:

  • APPID: xxxxxxxxxxxxxxx
  • TOKEN: xxxxxxxxxxxxxxx
  • EncodingAESKey: xxxxxxxxxxxxxxx

# 批量设置用户标签接口:

https://chatbot.weixin.qq.com/openapi/unbindmp/{TOKEN}

接口类型:

POST请求

参数说明:

字段 类型 是否必填 描述
authorizer_appid string 公众号appid

消息加解密接入指引

比如参数为

<xml>
    <authorizer_appid><![CDATA[https://xxx.com/xxx]]></authorizer_appid>
</xml>

将加密后的数据,以字段 encrypt 放入 body 中

var cryptor = new WXBizMsgCrypt(TOKEN, EncodingAESKey, APPID);

var data = `<xml>
    <authorizer_appid><![CDATA[https://xxx.com/xxx]]></authorizer_appid>
</xml>

</xml>`

var encrypted = cryptor.encrypt(data);

curl -X post -d '{"encrypt": encrypted}' "https://chatbot.weixin.qq.com/openapi/unbindmp/{TOKEN}" -H "Content-Type:application/json"

返回值说明:

字段 类型 描述
code number 错误码
msg array 接口调用信息

返回格式:

{
	"code": 0,
	"message": "success"
}