Skip to content
/ Wbi Public

Bilibili wbi sign / 哔哩哔哩wbi鉴权签名, Standard libraries only / 纯原生库实现

Notifications You must be signed in to change notification settings

Miuzarte/Wbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wbi

Bilibili wbi sign / 哔哩哔哩wbi鉴权签名

Standard libraries only / 纯原生库实现

From

github.com/SocialSisterYi/bilibili-API-collect/.../wbi.md#Golang

Usage

import (
	"fmt"
	"github.com/Miuzarte/Wbi"
)

func main() {
	mid := 1850091
	url := fmt.Sprintf("https://api.bilibili.com/x/space/wbi/acc/info?mid=%v", mid)
	urlWithWbi, err := Wbi.Sign(url)
	fmt.Println(urlWithWbi)
	fmt.Println(err)
}

func getKeys1() (imgKey, subKey string) {
	imgKey, subKey = Wbi.GetWbiKeysCached()
	return
}

func getKeys2() (imgKey, subKey string) {
	imgKey, subKey = Wbi.GetWbiKeys()
	return
}

About

Bilibili wbi sign / 哔哩哔哩wbi鉴权签名, Standard libraries only / 纯原生库实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages