2727551894

导航

 

【微信开发】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 2016-03-18 10:32  xmj112288  阅读(399)  评论(0编辑  收藏  举报