MCPcopy Create free account
hub / github.com/FloatTech/AnimeAPI / GetAllGuard

Function GetAllGuard

bilibili/api.go:145–157  ·  view source on GitHub ↗

GetAllGuard 查询mid的上舰信息

(mid string)

Source from the content-addressed store, hash-verified

143
144// GetAllGuard 查询mid的上舰信息
145func GetAllGuard(mid string) (guardUser GuardUser, err error) {
146 var data []byte
147 data, err = web.GetData(AllGuardURL)
148 if err != nil {
149 return
150 }
151 m := gjson.ParseBytes(data).Get("@this").Map()
152 err = json.Unmarshal(binary.StringToBytes(m[mid].String()), &guardUser)
153 if err != nil {
154 return
155 }
156 return
157}
158
159// GetArticleInfo 用id查专栏信息
160func GetArticleInfo(id string) (card Card, err error) {

Callers 1

TestGetAllGuardFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by 1

TestGetAllGuardFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…