[图片]
我不知道哪错了,一直报日期不对https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-trend/analysis.getDailyVisitTrend.html
2020-07-03[图片]我用postman请求的,你告诉我她妈的哪错了
通过微信接口获取访问分析数据报错61500在postman上测试该接口 [代码]https://api.weixin.qq.com/datacube/getweanalysisappiddailyvisittrend?access_token=ACCESS_TOKEN[代码] 参数按照文档上的来书写 [代码]结果报错[代码] [代码][代码] { "errcode": 61500, "errmsg": "date format error hint: [Ge_fXa00091556]" } access_token是测试前几分钟获取,不存在过期可能性 [代码] [代码]
2020-07-03我也是这个问题,真是日了够了,腾讯的文档真他妈恶心
就是微信小程序获取数据中实时分析,一直报日期格式错误String grant_type = "client_credential"; String url = "https://api.weixin.qq.com/cgi-bin/token"; String param = "grant_type="+grant_type+"&appid="+appid+"&secret="+appSecret; String access_token = HttpRequest.sendGet(url, param); Map<String,Object> map = JSON.parseObject(access_token); System.out.println("---"+map.get("access_token")); String begin_date = new SimpleDateFormat("yyyyMMdd").format(new Date()); System.out.println("date===:"+begin_date); Calendar ca = Calendar.getInstance();//得到一个Calendar的实例 ca.setTime(new Date()); //设置时间为当前时间 ca.add(Calendar.DATE, -1); Date lastMonth = ca.getTime(); String end_date = new SimpleDateFormat("yyyyMMdd").format(lastMonth); System.out.println("end_date===:"+end_date); String url1 = "https://api.weixin.qq.com/datacube/getweanalysisappiddailyvisittrend?access_token="+map.get("access_token"); String param1 = "&end_date=20170313&begin_date=20170313"; String JsonList = HttpRequest.sendPost(url1, param1); System.out.println(JsonList); 报:{"errcode":61500,"errmsg":"date format error hint: [x9JRTA02761556]"}
2020-07-03