首页 > 编程知识 正文

企业微信常用接口有哪些,企业微信 接口

时间:2023-05-05 17:03:12 阅读:209656 作者:4638

官方文档地址:https://work.weixin.qq.com/api/doc/90000/90135/90664
1.企业微信获取token

keyvalueurl地址https://qyapi.weixin.qq.com/cgi-bin/gettoken请求类型get请求参数corpid(String 企业Id)、corpsecret(String 企业应用密码)

2.根据手机号获取userId

keyvalueurl地址https://qyapi.weixin.qq.com/cgi-bin/user/getuserid?access_token=ACCESS_TOKEN请求类型post请求参数mobile(String 手机号)、access_token(String token)

3.根据userID发送应用卡片消息

keyvalueurl地址https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN请求类型post请求参数touser(String 用户ID数组字符串)、msgtype(String 应用消息类型)、title(String 标题) 、description(String 描述)、url(String 地址)、btntxt(String 卡片底部文字)

4.根据userID发送应用文字消息

keyvalueurl地址https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=ACCESS_TOKEN请求类型post请求参数touser(String 用户ID数组字符串)、msgtype(String 应用消息类型)、title(String 标题) 、description(String 描述)、url(String 地址)、btntxt(String 卡片底部文字)

记录备忘,方便查询。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。