调用接口获取打卡数据请求地址https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckindata返回状态status: HTTP/1.1 200 OK
connection: close
error-code: 301002
error-msg: not allow operate another agent with this accesstoken., hint: [1607153263_61_b059f83e6958f356d289014fa3ea6691], from ip: xx:xx:xx:xx, more info at https://open.work.weixin.qq.com/devtool/query?e=301002
content-type: application/json; charset=UTF-8
content-length: 247
返回结果{ "errcode": 301002, "errmsg": "not allow operate another agent with this accesstoken., hint: [1607153263_61_b059f1121283e6958f356d289014fa3ea6691], from ip: 19.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301002", "checkindata": [] }
已解决。
需要查看企业微信后台打卡应用,获取打卡secret。获取相应的token。应用不同使用的secre也不同,生产的token也是不一样的。