yz

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QRInfo

type QRInfo struct {
	URL  string `json:"qr_url"`
	Code string `json:"qr_code"`
	ID   int64  `json:"qr_id"`
}

type YouZan

type YouZan struct {
	Debug bool
	// contains filtered or unexported fields
}

func New

func New(clientID, clientSecret, kdtID string, versions ...string) *YouZan

func (*YouZan) Call

func (y *YouZan) Call(api string, params map[string]string, versions ...string) (result api.CallResponse, err error)

func (*YouZan) CreateQROrder

func (y *YouZan) CreateQROrder(data echo.Store) (echo.Store, error)

func (*YouZan) HandleNotify

func (y *YouZan) HandleNotify(ctx echo.Context) (echo.Store, error)

func (*YouZan) Request

func (y *YouZan) Request() (resp auth.GenSelfTokenResponse, err error)

Jump to

Keyboard shortcuts

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