# Robotics Release - Open Interface
# Configuration information
For example:
- APPID: xxxxxxxxxxxxxxx
- TOKEN: xxxxxxxxxxxxxxx
- EncodingAESKey: xxxxxxxxxxxxxxx
# Robot Release Interface:
https://chatbot.weixin.qq.com/openapi/publish/{TOKEN}
Interface type:
POST request
Dxplaination of parameters:
field | type | Yes Required | describe |
---|---|---|---|
managerid | string | yes | Administrator id(Can be the creator, administrator id) |
Message encryption and decryption access guidelines
For example, the parameters are
<xml>
<managerid><![CDATA[Platform Administrator ID]]></managerid>
</xml>
Encrypt the data to the field encrypt Into the body.
var cryptor = new WXBizMsgCrypt(TOKEN, EncodingAESKey, APPID)
var data = `<xml>
<managerid><![CDATA[Platform Administrator ID]]></managerid>
</xml>`
var encrypted = cryptor.encrypt(data)
curl -X post -d '{"encrypt": encrypted}' "https://chatbot.weixin.qq.com/openapi/publish/{TOKEN}"
Return value:
field | type | describe |
---|---|---|
code | number | Error code |
errcode | number | Error code |
msg | array | Interface Call Information |
Return format:
{
"code": 0,
"errcode": 0,
"msg": "success"
}
# Error code:
{
errcode: 1001,
errmsg: "TOKEN is not valid"
}
Error code | describe |
---|---|
1001 | Token invalid |
1002 | The robot failed the audit. |
1003 | Signature missing userid field |
1004 | Signature field is empty |
1005 | Signature expired or invalid |
1006 | Signature check failed, userid field missing |
1007 | appid, category,label, desc Field cannot be empty |
1008 | appid, openid,msg, Field cannot be empty |
1009、1011 | appid Legitimacy check failure |
1010 | appid Check failure |
1013、1019 | Request Data Decryption Failed |
1015 | managerid Legitimacy check failure |