https://developers.weixin.qq.com/doc/aispeech/confapi/thirdkefu/sendmsg.html [图片] 按照这个guide 想给网页H5 发客服消息,结果返回503 [图片]
微信对话开发平台 给网页H5发送客服消息,返回503?TOKEN = "k4hqAeOi3pPMnmWURvZJd8jyj8BATR" EncodingAESKey = "uu06tNJqysIDCpSer1PjXC8nMZAo6fNxDszcBZ8OnaF" APPID = "8abfUZOvOlQr8Fr" headers = { "Content-Type": "application/json", } data = '''<xml> <appid><![CDATA[k4hqAeOi3pPMnmWURvZJd8jyj8BATR]]></appid> <openid><![CDATA[7hK2MdIzH9Q]]></openid> <msg><![CDATA[你好]]></msg> <channel>7</channel> <kefuname><![CDATA[BobAi]]></kefuname> </xml>''' encryp_test = WXBizMsgCrypt(TOKEN, EncodingAESKey, APPID) nonce = "12345678" ret, encrypt_xml = encryp_test.EncryptMsg(data, nonce) url = "https://chatbot.weixin.qq.com/openapi/sendmsg/{TOKEN}".format(TOKEN=TOKEN) response = requests.post(url, data=json.dumps({"encrypt": encrypt_xml}), headers=headers) response.status_code 是那里配置错了?
09-10{"encrypt": "<xml>\\n<Encrypt><![CDATA[H57KgxAQOxec/99YHPWupHYSzUf9kAyo486OpIK6ufp1he68GuT0mzG73lCYFZNzmktjDVjNSSvsHo8eESGXBA857uJgrzMcs0bDcdJ4piGGoPL8hukGuzf4jsqTdLeFBRwX+T8mhh18/JRr47dpsS/ptifNZzBh1v7WgXQgM//2ZxMPv/snjPn6ZhNiFCKPWRCosf/8jHEwJmdUzQLuQDhgNdv2VtQCEGnz/nKwVIfinWt8tkMrh7oEUx+V5dwx]]></Encrypt>\\n<MsgSignature><![CDATA[24104b8a8b9e763b22c5997ae39ad5ab335d00b1]]></MsgSignature>\\n<TimeStamp>1725978294</TimeStamp>\\n<Nonce><![CDATA[12345678]]></Nonce>\\n</xml>"}
微信对话开发平台 给网页H5发送客服消息,返回503?TOKEN = "k4hqAeOi3pPMnmWURvZJd8jyj8BATR" EncodingAESKey = "uu06tNJqysIDCpSer1PjXC8nMZAo6fNxDszcBZ8OnaF" APPID = "8abfUZOvOlQr8Fr" headers = { "Content-Type": "application/json", } data = '''<xml> <appid><![CDATA[k4hqAeOi3pPMnmWURvZJd8jyj8BATR]]></appid> <openid><![CDATA[7hK2MdIzH9Q]]></openid> <msg><![CDATA[你好]]></msg> <channel>7</channel> <kefuname><![CDATA[BobAi]]></kefuname> </xml>''' encryp_test = WXBizMsgCrypt(TOKEN, EncodingAESKey, APPID) nonce = "12345678" ret, encrypt_xml = encryp_test.EncryptMsg(data, nonce) url = "https://chatbot.weixin.qq.com/openapi/sendmsg/{TOKEN}".format(TOKEN=TOKEN) response = requests.post(url, data=json.dumps({"encrypt": encrypt_xml}), headers=headers) response.status_code 是那里配置错了?
09-10{"encrypt": "<xml>\\n<Encrypt><![CDATA[H57KgxAQOxec/99YHPWupHYSzUf9kAyo486OpIK6ufp1he68GuT0mzG73lCYFZNzmktjDVjNSSvsHo8eESGXBA857uJgrzMcs0bDcdJ4piGGoPL8hukGuzf4jsqTdLeFBRwX+T8mhh18/JRr47dpsS/ptifNZzBh1v7WgXQgM//2ZxMPv/snjPn6ZhNiFCKPWRCosf/8jHEwJmdUzQLuQDhgNdv2VtQCEGnz/nKwVIfinWt8tkMrh7oEUx+V5dwx]]></Encrypt>\\n<MsgSignature><![CDATA[24104b8a8b9e763b22c5997ae39ad5ab335d00b1]]></MsgSignature>\\n<TimeStamp>1725978294</TimeStamp>\\n<Nonce><![CDATA[12345678]]></Nonce>\\n</xml>"}
微信对话开发平台 给网页H5发送客服消息,返回503?TOKEN = "k4hqAeOi3pPMnmWURvZJd8jyj8BATR" EncodingAESKey = "uu06tNJqysIDCpSer1PjXC8nMZAo6fNxDszcBZ8OnaF" APPID = "8abfUZOvOlQr8Fr" headers = { "Content-Type": "application/json", } data = '''<xml> <appid><![CDATA[k4hqAeOi3pPMnmWURvZJd8jyj8BATR]]></appid> <openid><![CDATA[7hK2MdIzH9Q]]></openid> <msg><![CDATA[你好]]></msg> <channel>7</channel> <kefuname><![CDATA[BobAi]]></kefuname> </xml>''' encryp_test = WXBizMsgCrypt(TOKEN, EncodingAESKey, APPID) nonce = "12345678" ret, encrypt_xml = encryp_test.EncryptMsg(data, nonce) url = "https://chatbot.weixin.qq.com/openapi/sendmsg/{TOKEN}".format(TOKEN=TOKEN) response = requests.post(url, data=json.dumps({"encrypt": encrypt_xml}), headers=headers) response.status_code 是那里配置错了?
09-10https://developers.weixin.qq.com/doc/aispeech/confapi/thirdkefu/sendmsg.html [图片] 按照这个guide 想给网页H5 发客服消息,结果返回503 [图片] {"encrypt": "<xml>\\n<Encrypt><![CDATA[H57KgxAQOxec/99YHPWupHYSzUf9kAyo486OpIK6ufp1he68GuT0mzG73lCYFZNzmktjDVjNSSvsHo8eESGXBA857uJgrzMcs0bDcdJ4piGGoPL8hukGuzf4jsqTdLeFBRwX+T8mhh18/JRr47dpsS/ptifNZzBh1v7WgXQgM//2ZxMPv/snjPn6ZhNiFCKPWRCosf/8jHEwJmdUzQLuQDhgNdv2VtQCEGnz/nKwVIfinWt8tkMrh7oEUx+V5dwx]]></Encrypt>\\n<MsgSignature><![CDATA[24104b8a8b9e763b22c5997ae39ad5ab335d00b1]]></MsgSignature>\\n<TimeStamp>1725978294</TimeStamp>\\n<Nonce><![CDATA[12345678]]></Nonce>\\n</xml>"}
微信对话开发平台 给网页H5发送客服消息,返回503?TOKEN = "k4hqAeOi3pPMnmWURvZJd8jyj8BATR" EncodingAESKey = "uu06tNJqysIDCpSer1PjXC8nMZAo6fNxDszcBZ8OnaF" APPID = "8abfUZOvOlQr8Fr" headers = { "Content-Type": "application/json", } data = '''<xml> <appid><![CDATA[k4hqAeOi3pPMnmWURvZJd8jyj8BATR]]></appid> <openid><![CDATA[7hK2MdIzH9Q]]></openid> <msg><![CDATA[你好]]></msg> <channel>7</channel> <kefuname><![CDATA[BobAi]]></kefuname> </xml>''' encryp_test = WXBizMsgCrypt(TOKEN, EncodingAESKey, APPID) nonce = "12345678" ret, encrypt_xml = encryp_test.EncryptMsg(data, nonce) url = "https://chatbot.weixin.qq.com/openapi/sendmsg/{TOKEN}".format(TOKEN=TOKEN) response = requests.post(url, data=json.dumps({"encrypt": encrypt_xml}), headers=headers) response.status_code 是那里配置错了?
09-10