Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rosbit/go-wxmp-api
微信小程序SDK,支持服务多个小程序,配置简单,使用方便
https://github.com/rosbit/go-wxmp-api
golang mini-program sdk wechat
Last synced: about 6 hours ago
JSON representation
微信小程序SDK,支持服务多个小程序,配置简单,使用方便
- Host: GitHub
- URL: https://github.com/rosbit/go-wxmp-api
- Owner: rosbit
- License: mit
- Created: 2020-09-21T01:26:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T05:46:53.000Z (over 1 year ago)
- Last Synced: 2024-06-21T02:17:53.559Z (5 months ago)
- Topics: golang, mini-program, sdk, wechat
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security/image-check.go
Awesome Lists containing this project
README
# 微信小程序开发SDK
go-wxmp-api是对微信小程序API的封装,可以当作SDK使用,特点
- 支持多个小程序## 使用方法
```go
packge mainimport (
"github.com/rosbit/go-wxmp-api"
"github.com/rosbit/go-wxmp-api/auth"
)func main() {
wxmpapi.SetTokenStorePath("/path/to/store/token")
wxmpapi.SetWxmpConf("cfg1", "appId1", "appKey1")
wxmpapi.SetWxmpConf("cfg2", "appId2", "appKey2")session, err := auth.Code2Session("cfg1", "code-from-front-end")
// usage of session
}
```