我这边也是这样,已经发布很多文章了,调这个接口就是返回{"item":[],"total_count":0,"item_count":0} access_token是正确的,请帮我解决一下,可以联系我,772566741@qq.com
无法获取成功发布的列表https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.htmlhttps://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Get_materials_list.html 调用接口:https://api.weixin.qq.com/cgi-bin/freepublish/batchget 请求参数:{"offset":0,"count":5} 返回:{"item":[],"total_count":0,"item_count":0}
2023-06-16也是服了,这偶没人解答。 post请求的 content-type 还不能设置为 application/json?
调用接口出现invalid media type hint?java代码调用 [代码]https://api.weixin.qq.com/wxa/media_check_async[代码]接口出现{"errcode":40004,"errmsg":"invalid media type hint: [sKhR.a07191531]"}问题 ``` HttpPost request1 = new HttpPost("https://api.weixin.qq.com/wxa/media_check_async?media_type=2&access_token=" + accessToken); request1.addHeader("Content-Type", "application/json;charset=UTF-8"); Map<String, String> paramMap = new HashMap<String, String>(); paramMap.put("media_url", url); request1.setEntity(new StringEntity(JSONObject.toJSONString(paramMap), ContentType.create("application/json", "utf-8"))); // 处理返回结果 CloseableHttpResponse response = httpclient.execute(request1); HttpEntity httpEntity = response.getEntity(); String result = EntityUtils.toString(httpEntity, "UTF-8");// 转成string System.out.println(result); JSONObject jso = JSONObject.parseObject(result);``` 求解答
2020-10-27