wechat

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code2SessionReq

type Code2SessionReq struct {
	JsCode string
}

type Code2SessionRsp

type Code2SessionRsp struct {
	*Response
	OpenId     string `json:"openid" db:"openid"`
	SessionKey string `json:"session_key" db:"session_key"`
	UnionId    string `json:"unionid" db:"unionid"`
}

type Response

type Response struct {
	ErrCode int64  `json:"errcode" db:"errcode"`
	ErrMsg  string `json:"errmsg" db:"errmsg"`
}

type SDK

type SDK struct {
	Host      string
	AppId     string
	AppSecret string
}

func NewSDK

func NewSDK(appId, appSecret string) *SDK

func (*SDK) Code2Session

func (s *SDK) Code2Session(req *Code2SessionReq) (*Code2SessionRsp, error)

Jump to

Keyboard shortcuts

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