account

package
v0.0.0-...-5175aa2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func New

func New(r *request.Request) *Account

func (*Account) CreateQrCode

func (a *Account) CreateQrCode(permanent bool, ExpireIn int, sceneID int, sceneStr ...string) (*QrResult, error)

func (*Account) GetQrURL

func (a *Account) GetQrURL(ticket string) string

func (*Account) ShortenUrl

func (a *Account) ShortenUrl(longUrl string) (shortUrl string, err error)

type QrResult

type QrResult struct {
	Ticket   string `json:"ticket"`
	ExpireIn int    `json:"expire_seconds"`
	URL      string `json:"url"`
}

Jump to

Keyboard shortcuts

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