企业微信通过PostMan获取accesstoken与管理员信息方法
本文不是完全从头一步一步获取的,是正常系统运行过程中为了核对管理信息使用的方法
1、第三方服务商获取企业AccessToken
https://qyapi.weixin.qq.com/cgi-bin/service/get_corp_token?suite_access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{ "auth_corpid": "wxxxxxxxxxxxxxxxxxx", "permanent_code": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }
//SuitAccessToken是企业微信定时推送给第三方服务商的
//auth_corpid是授权企业的corpid
//permanent_code是授权企业的永久授权码
//使用Post方式
2、获取管理员信息
https://qyapi.weixin.qq.com/cgi-bin/service/get_admin_list?suite_access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{ "auth_corpid": "wxxxxxxxxxxxxxxxxxx", "agentid": xxxxxx }
//agentid是客户的agentid
3、如果是自建应用获取AccessToken,比较简单
https://open.work.weixin.qq.com/wwopen/devtool/interface/combine
直接输入corpid和corpsecret即可
另外建了几个QQ技术群:
2、全栈技术群:616945527
2、硬件嵌入式开发: 75764412
3、Go语言交流群:9924600
闲置域名WWW.EXAI.CN (超级人工智能)出售。