weshin

module
v0.0.0-...-245a666 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2019 License: MIT

README

Build Status

weshin

A WeChat API wrapper for Go

功能

微信公众号基础功能
微信网页开发
第三方平台授权

授权流程技术说明

微信消息加解密

微信消息加解密技术方案

微信支付

微信支付开发文档

暂不支持服务商模式

Sample

微信网页授权

需要有:

  • 一个正常使用的微信公众号,可申请测试号;
  • 一台公网能访问的服务器(测试号可使用IP访问,正式公众号只能用域名)
  1. 配置公众号的授权回调页面域名,指向自己的服务器;
  2. 配置 sample/config.json, appID, secret, address, helloURI, callbackURI 必填, callbackURI 域名与上一步一致;
  3. 编译部署 sample 到服务器;
  4. 任意微信号关注公众号后,访问 helloURI, 跳转至微信授权页面,用户同意后跳转 callbackURI, 获取用户信息后跳转回 helloURI, 正确显示用户昵称. (参见上节微信网页授权流程)
微信支付

What to do

  • [] 完善公众号 API 功能
    • [] 消息管理
    • [] 用户管理
    • [] 帐号管理
  • 微信支付

Directories

Path Synopsis
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=4_3
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=4_3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL