微信公众号OCr识别接口报错
发布于 5 年前 作者 zouchao 2409 次浏览 来自 官方Issues

https://api.weixin.qq.com/cv/ocr/idcard?img_url=ENCODE_URL&access_token=ACCESS_TOCKEN这个接口不是get方式请求么?为什么调用的时候提示

{“errcode”:43002,“errmsg”:“require POST method hint: [kxWfAA0020d191]”}这个,如果是需要post请求,那需要提交什么参数?

1 回复

已经解决了

需要这样使用:

请求地址改成这个:https://api.weixin.qq.com/cv/ocr/idcard?access_token=ACCESS_TOCKEN

请求参数:

需要提交一个img_url数组即可。array = array(‘img_url’=>‘img_path’);

回到顶部