123456789101112131415161718192021222324252627 |
- package wechat
- import (
- "fmt"
- mini "github.com/ArtisanCloud/PowerWeChat/v2/src/miniProgram"
- )
- func NewClient(AppId, Secret string) (*mini.MiniProgram, error) {
- client, err := mini.NewMiniProgram(&mini.UserConfig{
- AppID: AppId,
- Secret: Secret,
- HttpDebug: true,
- Debug: false,
-
-
-
-
-
-
- })
- if err != nil {
- fmt.Printf("init wechat miniprogram failed")
- }
- return client, err
- }
|