mx

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppID string // AppID appid

	AppSecret string // AppSecret app secret
)

Functions

This section is empty.

Types

type Action

type Action struct {
	Scene *Scene `json:"scene"`
}

type Error

type Error struct {
	ErrCode int    `json:"errcode,omitempty"`
	ErrMSG  string `json:"errmsg,omitempty"`
}

type MX

type MX struct{}

func NewMX added in v1.3.4

func NewMX() *MX

func (*MX) User

func (m *MX) User(openID string) (*User, error)

type Scene

type Scene struct {
	SceneID  int    `json:"scene_id"`
	SceneSTR string `json:"scene_str"`
}

type Ticket

type Ticket struct {
	ActionName    string  `json:"action_name"`
	ExpireSeconds int     `json:"expire_seconds"`
	ActionInfo    *Action `json:"action_info"`
	Ticket        string  `json:"ticket"`
	URL           string  `json:"url"`
	Error
}

func NewTicket added in v1.3.6

func NewTicket() *Ticket

func (*Ticket) Get

func (t *Ticket) Get(args *Ticket) (*Ticket, error)

type Token

type Token struct {
	AccessToken string `json:"access_token,omitempty"`
	ExpiresIN   int    `json:"expires_in,omitempty"`
	Error
}

func NewToken

func NewToken() *Token

func (*Token) Access

func (t *Token) Access() (string, error)

Access access token

func (*Token) Get added in v1.3.7

func (t *Token) Get() (*Token, error)

type User

type User struct {
	Subscribe      int    `json:"subscribe,omitempty"`
	OpenID         string `json:"openid,omitempty"`
	Language       string `json:"language,omitempty"`
	SubscribeTime  int    `json:"subscribe_time,omitempty"`
	UnionID        string `json:"unionid,omitempty"`
	Remark         string `json:"remark,omitempty"`
	GroupID        int    `json:"groupid,omitempty"`
	TagIDList      []int  `json:"tagid_list,omitempty"`
	SubscribeBcene string `json:"subscribe_scene,omitempty"`
	QRScene        int    `json:"qr_scene,omitempty"`
	QRSceneStr     string `json:"qr_scene_str,omitempty"`
	Error
}

Jump to

Keyboard shortcuts

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