1:只有企业管理后台,无服务商后台2:在企业管理后台,增加自定应用(自定审批)3:在自定应用设置:api接收消息,网页授权及JS-SDK(可用域名),企业可信IP(两个ip,一个国外,一个国内),增加审批接口,得到审批接口ID然后在上述可信IP进行shell操作:curl "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=$CORPID&corpsecret=$SECRET"得到access_token然后根据access_token,操作:curl -X POST -H "Content-Type: application/json" "https://qyapi.weixin.qq.com/cgi-bin/oa/gettemplatedetail?access_token=$ACCESS_TOKEN" -d "{'template_id':'$TEMPLATE_ID'}"返回:{"errcode":60020,"errmsg":"not allow to access from your ip, hint: [1681813167531333852684852], from ip: xx.xx.xx.xx, more info at https://open.work.weixin.qq.com/devtool/query?e=60020","template_names":[]}问:为啥信任ip后,还是60020?
本文地址:http://lanlanwork.gawce.com/news/1339.html
阁恬下 http://lanlanwork.gawce.com/ , 查看更多