Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeLayout = "2006-01-02 15:04:05" Domain = ".bilibili.com" Home = "https://www.bilibili.com" APILogin = "https://api.bilibili.com/x/web-interface/nav" APISign = "https://api.bilibili.com/x/member/web/coin/log?jsonp=jsonp" APICoin = "https://account.bilibili.com/site/getCoin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Code int `json:"code"` Message string `json:"message"` TTL int `json:"ttl"` Status bool `json:"status"` Data json.RawMessage `json:"data"` }
func NewAPIResponse ¶
func NewAPIResponse(body io.Reader) (*APIResponse, error)
func (*APIResponse) CoinInfo ¶
func (ar *APIResponse) CoinInfo() (*CoinInfo, error)
func (*APIResponse) LoginInfo ¶
func (ar *APIResponse) LoginInfo() (*LoginInfo, error)
func (*APIResponse) SignInfo ¶
func (ar *APIResponse) SignInfo() (*SignInfo, error)
type BiliBili ¶
type BiliBili struct {
// contains filtered or unexported fields
}
func NewBiliBili ¶
Click to show internal directories.
Click to hide internal directories.