2727551894

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
统计
 

【微信开发】api

一. 开发文档

二. 调试工具

三. api

 1. 获取 token - https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}

  有过期时效,需要定时刷新

 

 2. 获取 ticket - https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={0}&type=jsapi

  有过期时效,需要定时刷新

 

 3. url 转换成 微信 链接 - https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope=snsapi_base&state=123#wechat_redirect

  通过微信跳转后会返回 code, 可用于获取客户微信账号信息

 

 4. 获取 opend - https://api.weixin.qq.com/sns/oauth2/access_token?appid={0}&secret={1}&code={2}&grant_type=authorization_code

  openid 为客户微信id(不同的订阅号微信id不同,还没证实),可用于做客户标志

 

 5. 获取客户微信账号信息 - https://api.weixin.qq.com/sns/userinfo?access_token={0}&openid={1}&lang=zh_CN

 

 6. 获取客户上传的图片,视频等 - http://file.api.weixin.qq.com/cgi-bin/media/get?access_token={0}&media_id={1}

 

posted on   xmj112288  阅读(411)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
 
点击右上角即可分享
微信分享提示