Giter VIP home page Giter VIP logo

wechat-open's Introduction

wechat-open 微信第三方平台开发



填写开发资料

微信第三方平台 - 申请资料说明

授权流程相关

授权后代替公众号实现业务

白名单IP地址


授权流程介绍

  1. 第三方平台先提供一个HMTL页面,介绍该平台的功能,并提供授权页面

第三方平台页面

  1. 用户点击授权地址,获得一个二维码页面

公众平台授权页面

  1. 公众号管理者运营者,扫描这个二维码,同意授权
  2. 第三方平台服务获取相关信息,并进行处理
  3. 至此公众号授权给第三方平台完成

接口说明


微信 - 授权流程技术说明


授权事件接收URL介绍

  • URL:http://open.baidu.com/open/event/authorize
  • 该URL处理4件事情,分别是
    • 处理微信每10分钟像这个接口推送的component_verify_ticket
    • 处理取消授权通知
    • 处理授权成功通知
    • 处理授权更新通知
  • 接收到消息后接收到后必须直接返回字符串success
  • component_verify_ticket: 验证平台方的重要凭据,服务方在获取component_access_token时需要提供最新推送的ticket以供验证身份合法性。此ticket作为验证服务方的重要凭据,请妥善保存。

公众号消息与事件接收URL

  • URL: http://open.baidu.com/open/$APPID$/callback
  • 该URL处理,粉丝对公众号的发送消息、菜单、扫码等事件。
  • 并且要处理微信全网发布检测, 微信 - 全网发布接入检测说明

授权页面

  • URL:http://open.baidu.com/open
  • 该页面需要提供一个授权链接: https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=xxxx&pre_auth_code=xxxxx&redirect_uri=xxxx
  • component_appid : 第三方平台的APPID
  • pre_auth_code : 预授权码
  • redirect_uri : 回调URI,不需要URLEncode
  • 提供授权页面

授权成功回调页面

  • URL: http://open.baidu.com/open/auth
  • 返回授权成功页面

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.