wechat

package
v0.0.0-...-8eb0397 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WECHAT_HOST = "https://api.weixin.qq.com"
	APPID       = ""
	SECRET      = ""
)
View Source
const (
	WeChatProgramUserInfoReqPath int
)

Variables

View Source
var WeChatProgramReqPath = map[int]string{
	WeChatProgramUserInfoReqPath: "/sns/jscode2session",
}

Functions

func GetWeChatOpenIdByCode

func GetWeChatOpenIdByCode(code string) (openid, session_key string)

func WeChatProgramUserInfoReq

func WeChatProgramUserInfoReq(code, appid string) (rsp []byte, err error)

Types

type WeChatUserInfoRsp

type WeChatUserInfoRsp struct {
	Openid      string `json:"openid"`
	Session_key string `json:"session_key"`
}

Jump to

Keyboard shortcuts

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