bili

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

说明

helloworld.go 测试文件

model 模型

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BiliHello

func BiliHello()

hello world

func Demo1

func Demo1()

func GenerateQrCode

func GenerateQrCode(data LoginUrlModel) (q *qrcode.QRCode)

func GetLoginInfo

func GetLoginInfo(oauthKey string) ([]byte, http.Header)

Get Login Info 官方网站是三秒一个循环

func WriteFile

func WriteFile(q *qrcode.QRCode, png_filename string) error

Types

type BiliApiBaseModel

type BiliApiBaseModel struct {
	Code int           `json:"code"`
	Data LoginUrlModel `json:"data"`
}

Http Base Model

type LoginUrlModel

type LoginUrlModel struct {
	Url      string `json:"url"`
	OauthKey string `json:"oauthKey"`
}

QRcode get OauthKey

func GetLoginUrl

func GetLoginUrl() LoginUrlModel

Get Login Url 获取二维码的 地址

Jump to

Keyboard shortcuts

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