Categorygithub.com/cjphaha/wxapi
modulepackage
0.0.5
Repository: https://github.com/cjphaha/wxapi.git
Documentation: pkg.go.dev

# README

wxapi

这是用golang编写的一个用来处理微信接口的一个通用包,包含了微信小程序登陆解密信息、创建支付订单、微信网页登陆等接口,目前正在持续更新中。

安装

$ go get github.com/cjphaha/wxapi

go modules

require github.com/cjphaha/wxapi v0.0.2

常量

常量名功能
Signsign标记签名
SessionkeyUrlhttps://api.weixin.qq.com/sns/jscode2session获取sessionkey的地址

常用结构体

开发者账号结构体

type Account struct {
	appID string
	appSecret string
}

用session_key获取的

接口说明

函数名功能参数返回值参数说明
NewAccount初始化开发者账号(appID,appSecret string)*Account开发者的appid和appserect
NewClient创建普通微信开发者客户端(account *Account)*CommonClient账户信息,包括appid和appserect
Jiemi解密用户的信息,获取UnionID
GetSessionKey获取sessionkey(code ,appid,secret string)UnionIdBodycode是用户在微信小程序中获取的
GetDecryptUserInfo获取解密的信息微信小程序提供的加密信息解密后的信息参数由微信小程序提供

样例

# Packages

No description provided by the author

# Functions

获取签名.
No description provided by the author
No description provided by the author
创建普通微信客户端.
创建微信支付账号.
创建微信支付客户端.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
用户发送的请求.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author