zoukankan      html  css  js  c++  java
  • 【微信开发】常用 api

    【微信开发】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}

  • 相关阅读:
    POJ 1475 推箱
    POJ 2253 Frogger
    POJ 1970 The Game
    POJ 1979 Red and Black
    HDU 1546 Idiomatic Phrases Game 求助!help!!!
    Fibonacci 1
    BZOJ 1041
    椭圆曲线质因数分解
    奇怪的高精度
    数论v2
  • 原文地址:https://www.cnblogs.com/fzz2727551894/p/5291078.html
Copyright © 2011-2022 走看看